/* =========================================================
   Marketplace front-end styles — property marketplace theme.
   Reuses the project's admin-configurable brand tokens defined in
   saas/frontend/layouts/style.blade.php (:root):
     --primary-color, --secondary-color,
     --button-primary-color, --button-hover-color
   Everything else (neutrals, spacing, shadows, type) is owned by
   this file. Load this file AFTER style.blade.php's inline <style>
   so these :root re-declarations win the cascade.
   ========================================================= */

:root {
    /* Brand accent — admin configurable, do not hardcode */
    --market-accent: var(--button-primary-color, var(--primary-color, #3686FC));
    --market-accent-hover: var(--button-hover-color, var(--primary-color, #0063E6));

    /* Neutrals — warm, editorial, not clinical gray */
    --market-ink: #14161F;
    --market-ink-soft: #43465A;
    --market-body: #6B6E80;
    --market-faint: #9A9DAC;
    --market-line: #E8E6DF;
    --market-line-soft: #F1F0E9;
    --market-surface: #FFFFFF;
    --market-surface-alt: #FAF9F5;
    --market-surface-ink: #0C0D14;
    --market-surface-ink-2: #14151F;

    /* Semantic accents */
    --market-verified: #1E8F5F;
    --market-verified-bg: #E6F5EC;
    --market-star: #E8A83C;
    --market-danger: #D6483E;
    --market-danger-bg: #FBEAE8;

    /* Radius scale */
    --market-radius-xs: 8px;
    --market-radius-sm: 12px;
    --market-radius-md: 20px;
    --market-radius-lg: 28px;
    --market-radius-pill: 999px;

    /* Shadow scale */
    --market-shadow-sm: 0 1px 2px rgba(20, 22, 31, 0.04), 0 2px 8px rgba(20, 22, 31, 0.04);
    --market-shadow-md: 0 8px 24px -4px rgba(20, 22, 31, 0.10);
    --market-shadow-lg: 0 24px 48px -16px rgba(20, 22, 31, 0.20);
    --market-shadow-xl: 0 32px 72px -20px rgba(20, 22, 31, 0.28);
    --market-shadow-accent: 0 12px 28px -10px color-mix(in srgb, var(--market-accent) 55%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    :root {
        --market-shadow-accent: 0 12px 28px -10px rgba(54, 134, 252, 0.35);
    }
}

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

a,
.market-btn-primary,
.market-btn-outline,
.market-btn-white,
.market-btn-outline-white,
.market-chip,
.market-see-all,
.property-card,
.property-card-img-wrap img,
.market-city-card img,
button {
    transition: all 0.2s ease;
}

.mt-16 {
    margin-top: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.text-truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[x-cloak] {
    display: none !important;
}

/* =========================================================
   1. Navbar
   ========================================================= */
.market-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--market-line-soft);
}

.market-navbar {
    padding: 16px 0;
}

.market-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--market-ink);
}

.market-brand img {
    height: 32px;
    width: auto;
}

.market-brand i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--market-accent);
    color: #fff !important;
    font-size: 15px;
}

.market-nav-links {
    gap: 2px;
}

.market-nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--market-ink-soft);
    padding: 10px 16px;
    border-radius: var(--market-radius-pill);
}

.market-nav-links .nav-link i {
    font-size: 12px;
    color: var(--market-faint);
}

.market-nav-links .nav-link:hover,
.market-nav-links .nav-link.active {
    color: var(--market-ink) !important;
    background: var(--market-surface-alt);
}

.market-nav-links .nav-link.active i {
    color: var(--market-accent);
}

.market-nav-actions {
    gap: 2px;
}

.market-utility-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--market-ink-soft);
    padding: 8px 12px;
    border-radius: var(--market-radius-pill);
}

.market-utility-link:hover {
    background: var(--market-surface-alt);
    color: var(--market-ink) !important;
}

.market-nav-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--market-line);
    margin: 0 8px;
}

.market-login-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--market-ink);
    padding: 9px 16px;
}

.market-login-link:hover {
    color: var(--market-accent) !important;
}

/* Buttons */
.market-btn-primary {
    background: var(--market-accent);
    color: #fff !important;
    border: none;
    border-radius: var(--market-radius-pill);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(20, 22, 31, 0.06);
}

.market-btn-primary:hover {
    background: var(--market-accent-hover);
    color: #fff !important;
    box-shadow: var(--market-shadow-accent);
    transform: translateY(-1px);
}

.market-btn-outline {
    background: var(--market-surface);
    color: var(--market-ink) !important;
    border: 1.5px solid var(--market-line);
    border-radius: var(--market-radius-pill);
    padding: 10.5px 20px;
    font-size: 14px;
    font-weight: 600;
}

.market-btn-outline:hover {
    border-color: var(--market-ink);
    background: var(--market-surface-alt);
}

.market-btn-white {
    background: var(--market-surface);
    color: var(--market-ink) !important;
    border: none;
    border-radius: var(--market-radius-pill);
    padding: 12px 26px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--market-shadow-md);
}

.market-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: var(--market-shadow-lg);
}

.market-btn-outline-white {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--market-radius-pill);
    padding: 10.5px 22px;
    font-weight: 700;
    white-space: nowrap;
}

.market-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

/* =========================================================
   2. Hero
   ========================================================= */
.market-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--market-surface-ink);
    background-image:
        radial-gradient(1100px 620px at 14% -10%, color-mix(in srgb, var(--market-accent) 38%, transparent), transparent 60%),
        radial-gradient(900px 700px at 100% 0%, #1c6e56 0%, transparent 55%),
        linear-gradient(160deg, #0c0d14 0%, #14151f 48%, #191b2a 100%);
    overflow: hidden;
    padding-bottom: 56px;
}

@supports not (background: radial-gradient(1px 1px at 0 0, red, blue)) {
    .market-hero {
        background-image: linear-gradient(160deg, #0c0d14 0%, #14151f 48%, #191b2a 100%);
    }
}

.market-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 10, 18, 0.15) 0%, rgba(9, 10, 18, 0.55) 78%, rgba(9, 10, 18, 0.78) 100%);
}

.market-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.18), transparent),
        radial-gradient(2px 2px at 78% 18%, rgba(255, 255, 255, 0.14), transparent),
        radial-gradient(1.5px 1.5px at 60% 65%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(255, 255, 255, 0.1), transparent);
}

.market-hero-content {
    position: relative;
    max-width: 780px;
    padding: 96px 0 24px;
}

.market-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--market-radius-pill);
    padding: 7px 16px 7px 8px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.market-hero-badge-light {
    background: var(--market-surface-alt);
    color: var(--market-ink);
    border-color: var(--market-line);
}

.market-hero-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--market-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-hero-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.market-hero-content h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    max-width: 720px;
}

.market-hero-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 540px;
}

.market-hero-meta {
    margin-top: 60px;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
}

.market-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.market-hero-meta i {
    color: var(--market-star);
}

.market-hero-meta-sep {
    opacity: 0.4;
}

/* Smaller hero used on inner pages (about / contact) */
.market-page-hero {
    position: relative;
    background: linear-gradient(180deg, var(--market-surface-alt) 0%, var(--market-surface) 100%);
    padding: 88px 0 60px;
    overflow: hidden;
}

.market-page-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 320px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--market-accent) 16%, transparent), transparent 70%);
    pointer-events: none;
}

.market-page-hero-sm {
    padding: 68px 0 46px;
}

.market-page-hero h1 {
    position: relative;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
    max-width: 680px;
    margin: 20px auto 14px;
}

.market-page-hero p {
    position: relative;
    color: var(--market-body);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Floating tabbed search card */
.market-hero-search-card {
    background: #fff;
    border-radius: var(--market-radius-lg);
    padding: 16px 18px 18px;
    box-shadow: var(--market-shadow-xl);
    max-width: 760px;
    margin-bottom: -58px;
}

.market-hero-search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.market-hero-search-tabs .btn {
    border: none;
    border-radius: var(--market-radius-pill);
    padding: 8px 15px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--market-body);
    background: var(--market-surface-alt);
}

.market-hero-search-tabs .btn-check:checked+.btn {
    background: var(--market-ink);
    color: #fff;
}

.market-hero-search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    border: 1.5px solid var(--market-line-soft);
    border-radius: var(--market-radius-md);
    background: var(--market-surface-alt);
}

.market-hero-search-field {
    flex: 1 1 140px;
    padding: 9px 18px;
    border-right: 1px solid var(--market-line);
}

.market-hero-search-field:last-of-type {
    border-right: none;
}

.market-hero-search-field-location {
    flex: 1.7 1 200px;
}

.market-hero-search-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--market-faint);
    margin-bottom: 3px;
}

.market-hero-search-field input {
    border: none;
    padding: 4px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--market-ink);
    background: transparent;
    width: 100%;
}

.market-hero-search-field input:focus {
    outline: none;
    box-shadow: none;
}

.market-hero-search-input {
    display: flex;
    align-items: center;
    gap: 9px;
}

.market-hero-search-input i {
    color: var(--market-accent);
    font-size: 13px;
}

.market-hero-search-form .market-hero-search-btn {
    flex: 0 0 auto;
    margin: 7px 7px 7px 10px;
    align-self: center;
    padding: 13px 26px;
}

/* =========================================================
   3. Trust strip / rating line
   ========================================================= */
.market-trust-strip {
    position: relative;
    background: var(--market-surface-alt);
    padding: 96px 0 26px;
}

.market-trust-item {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--market-ink);
    display: flex;
    align-items: center;
    gap: 11px;
}

.market-trust-item i {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--market-surface);
    box-shadow: var(--market-shadow-sm);
    color: var(--market-accent);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-trust-strip-inline {
    background: transparent;
    padding: 4px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--market-line);
    margin-bottom: 24px;
}

.market-trust-strip-inline span {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--market-body);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.market-trust-strip-inline i {
    color: var(--market-accent);
}

.market-rating-line {
    padding: 18px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--market-body);
}

.market-rating-line i.fa-star {
    color: var(--market-star);
    font-size: 12px;
}

.market-rating-line a {
    color: var(--market-ink);
    font-weight: 700;
    margin-left: 6px;
}

.market-rating-line-inline {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--market-ink);
}

.market-rating-line-inline i {
    color: var(--market-star);
    font-size: 13px;
}

/* =========================================================
   4. Sections / headings
   ========================================================= */
.market-section {
    padding: 76px 0;
}

.market-section-alt {
    background: var(--market-surface-alt);
}

.market-section-tight {
    padding: 44px 0 8px;
}

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

.market-section-head h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
    margin-bottom: 7px;
}

.market-section-head p {
    color: var(--market-body);
    font-size: 14.5px;
    max-width: 520px;
}

.market-section-head-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.market-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--market-accent);
    margin-bottom: 12px;
}

.market-eyebrow::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--market-accent);
}

.market-section-head-center h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
}

.market-lead-text {
    font-size: 17px;
    color: var(--market-ink-soft);
    line-height: 1.75;
}

.market-see-all {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--market-ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.market-see-all:hover {
    color: var(--market-accent) !important;
    gap: 11px;
}

/* =========================================================
   5. Horizontal scrollers (cities / chips)
   ========================================================= */
.market-scroller-wrap {
    position: relative;
}

.market-city-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 12px;
    scrollbar-width: none;
}

.market-city-scroller::-webkit-scrollbar {
    display: none;
}

.market-city-card {
    position: relative;
    flex: 0 0 190px;
    height: 190px;
    border-radius: var(--market-radius-md);
    overflow: hidden;
    display: block;
    box-shadow: var(--market-shadow-sm);
}

.market-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.market-city-card:hover img {
    transform: scale(1.07);
}

.market-city-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(12, 13, 20, 0) 40%, rgba(12, 13, 20, 0.8) 100%);
}

.market-city-card-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.market-city-card-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.market-city-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--market-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: var(--market-shadow-sm);
}

.market-scroller-nav {
    position: absolute;
    top: 42%;
    right: -8px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--market-line);
    background: #fff;
    box-shadow: var(--market-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--market-ink);
}

.market-scroller-nav:hover {
    background: var(--market-ink);
    color: #fff;
    border-color: var(--market-ink);
}

.market-scroller-nav-prev {
    left: -8px;
    right: auto;
}

/* Horizontal, swipeable property card rows (Featured / Hotel / Rentals, etc.) */
.market-property-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
    scrollbar-width: none;
}

.market-property-scroller::-webkit-scrollbar {
    display: none;
}

.market-property-scroller .property-card {
    flex: 0 0 275px;
}

@media (max-width: 575.98px) {
    .market-property-scroller .property-card {
        flex-basis: 240px;
    }
}

.market-chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.market-chip-row::-webkit-scrollbar {
    display: none;
}

.market-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--market-radius-pill);
    border: 1.5px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--market-ink-soft);
    background: var(--market-surface-alt);
}

.market-chip:hover {
    background: var(--market-line-soft);
    color: var(--market-ink) !important;
}

.market-chip-solid {
    background: var(--market-ink);
    color: #fff !important;
    border-color: var(--market-ink);
}

.market-chip-solid:hover {
    background: var(--market-accent);
    border-color: var(--market-accent);
    color: #fff !important;
}

/* =========================================================
   6. Property card
   ========================================================= */
.property-card {
    background: var(--market-surface);
    border-radius: var(--market-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.property-card:hover {
    box-shadow: var(--market-shadow-lg);
    transform: translateY(-4px);
}

.property-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--market-radius-md);
    background: var(--market-surface-alt);
}

.property-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-img-wrap img {
    transform: scale(1.06);
}

.property-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--market-ink);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: var(--market-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--market-shadow-sm);
}

.property-card-badge i {
    color: var(--market-star);
    font-size: 10px;
}

.property-card-badge-dark {
    background: rgba(12, 13, 20, 0.85);
    color: #fff;
}

.property-card-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(12, 13, 20, 0.32);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.property-card-fav:hover {
    background: rgba(12, 13, 20, 0.5);
}

.property-card-fav.is-active {
    color: var(--market-danger);
    background: #fff;
}

.property-card-fav.is-active i {
    font-weight: 900;
}

.property-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--market-ink) !important;
    margin-bottom: 7px;
    letter-spacing: -0.005em;
}

.property-card-rating {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--market-ink);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.property-card-rating i {
    color: var(--market-star);
    font-size: 11px;
}

.property-card-address {
    font-size: 13px;
    color: var(--market-body);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card-address i {
    color: var(--market-faint);
    font-size: 11px;
}

.property-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--market-line-soft);
}

.property-card-price {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--market-ink);
    letter-spacing: -0.01em;
}

.property-card-price span {
    font-size: 12px;
    font-weight: 500;
    color: var(--market-body);
}

.property-card-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--market-ink-soft);
    background: var(--market-surface-alt);
    padding: 5px 11px;
    border-radius: var(--market-radius-pill);
}

/* =========================================================
   7. Newsletter / host CTA bands
   ========================================================= */
.market-newsletter-band {
    background: var(--market-surface-ink);
    padding: 52px 0;
    color: #fff;
}

.market-newsletter-band h3 {
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.market-newsletter-band p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.market-newsletter-form {
    display: flex;
    gap: 10px;
}

.market-newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: var(--market-radius-pill);
    padding: 13px 20px;
    height: auto;
}

.market-newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.market-newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.market-host-band {
    background: linear-gradient(120deg, var(--market-accent), var(--market-accent-hover));
    padding: 28px 0;
}

.market-host-band h4 {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 2px;
}

.market-host-band p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
}

.market-cta-band {
    background: var(--market-surface-ink);
    background-image: radial-gradient(700px 280px at 85% 0%, color-mix(in srgb, var(--market-accent) 30%, transparent), transparent 70%);
    padding: 54px 0;
}

.market-cta-band h3 {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.market-cta-band p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14.5px;
}

/* =========================================================
   8. Footer
   ========================================================= */
.market-footer {
    background: var(--footer-bg, #0c0d14);
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.market-footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 19px;
    color: #fff !important;
    margin-bottom: 16px;
}

.market-footer-logo img {
    height: 28px;
}

.market-footer-logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--market-accent);
    color: #fff;
    font-size: 14px;
}

.market-footer-text {
    font-size: 13.5px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.market-app-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.market-app-badges a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-app-badges a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
}

.market-social-list {
    display: flex;
    gap: 10px;
}

.market-social-list a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.market-social-list a:hover {
    background: var(--market-accent);
    border-color: var(--market-accent);
    color: #fff !important;
}

.market-footer-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.market-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-footer-links a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6) !important;
}

.market-footer-links a:hover {
    color: #fff !important;
    padding-left: 2px;
}

.market-footer-bottom {
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.market-footer-bottom-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 9px;
}

.market-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-payment-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.market-payment-momo {
    background: #ffcb05;
    color: #1a1a1a;
}

.market-payment-om {
    background: #ff7900;
    color: #fff;
}

.market-help-link {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}

.market-help-link:hover {
    color: #fff !important;
}

.market-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
}

.market-footer-legal {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 6px;
}

.market-footer-legal a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4) !important;
}

.market-footer-legal a:hover {
    color: #fff !important;
}

.market-whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    box-shadow: var(--market-shadow-xl);
    z-index: 1040;
}

.market-whatsapp-float:hover {
    color: #fff !important;
    transform: scale(1.06);
}

/* =========================================================
   9. Search / results / listing pages
   ========================================================= */
.market-breadcrumb {
    padding: 18px 0;
    font-size: 13px;
}

.market-breadcrumb .breadcrumb-item a {
    color: var(--market-body);
    font-weight: 500;
}

.market-breadcrumb .breadcrumb-item.active {
    color: var(--market-ink);
    font-weight: 600;
}

.market-search-page {
    padding-bottom: 64px;
}

.market-list-page {
    padding-bottom: 72px;
}

.market-search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    position: sticky;
    top: 82px;
    z-index: 20;
    box-shadow: var(--market-shadow-md);
}

.market-search-toolbar-input {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--market-surface-alt);
    border-radius: var(--market-radius-pill);
    padding: 4px 16px;
}

.market-search-toolbar-input i {
    color: var(--market-accent);
    font-size: 13px;
}

.market-search-toolbar-input .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 11px 0;
    height: auto;
    font-size: 14px;
    font-weight: 500;
}

.market-search-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.market-type-toggle .btn {
    border: 1.5px solid var(--market-line);
    color: var(--market-body);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
}

.market-type-toggle .btn:first-of-type {
    border-radius: var(--market-radius-pill) 0 0 var(--market-radius-pill);
}

.market-type-toggle .btn:last-of-type {
    border-radius: 0 var(--market-radius-pill) var(--market-radius-pill) 0;
}

.market-type-toggle .btn-check:checked+.btn {
    background: var(--market-ink);
    border-color: var(--market-ink);
    color: #fff;
}

.market-sort-dropdown .dropdown-toggle::after {
    display: none;
}

.market-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.market-results-head h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
}

.market-results-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--market-body);
    background: var(--market-surface-alt);
    padding: 6px 13px;
    border-radius: var(--market-radius-pill);
}

.market-pagination-wrap {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.market-pagination .page-link {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    border: 1px solid var(--market-line);
    color: var(--market-ink);
    font-weight: 600;
    padding: 0;
}

.market-pagination .page-item.active .page-link {
    background: var(--market-ink);
    border-color: var(--market-ink);
    color: #fff;
}

/* Map */
.market-map-sticky {
    position: sticky;
    top: 150px;
}

.market-map-frame {
    position: relative;
    height: calc(100vh - 190px);
    min-height: 480px;
    border-radius: var(--market-radius-lg);
    overflow: hidden;
    border: 1px solid var(--market-line);
    box-shadow: var(--market-shadow-md);
}

.market-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85) contrast(0.96);
}

.market-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: var(--market-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 13px;
    border-radius: var(--market-radius-pill);
    box-shadow: var(--market-shadow-md);
    pointer-events: none;
}

/* Filters (offcanvas + sidebar share the same field styles) */
.market-filter-group {
    margin-bottom: 26px;
}

.market-filter-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--market-ink);
    margin-bottom: 11px;
}

/* Type-de-bien checkboxes */
.market-filter-group .form-check.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 0;
    margin-bottom: 10px;
    padding: 0;
}

.market-filter-group .form-check.custom-checkbox:last-child {
    margin-bottom: 0;
}

.market-filter-group .custom-checkbox .form-check-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid var(--market-line);
    border-radius: 6px;
    background-color: var(--market-surface);
    background-size: 62% 62%;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.market-filter-group .custom-checkbox .form-check-input:hover {
    border-color: var(--market-accent);
}

.market-filter-group .custom-checkbox .form-check-input:focus {
    border-color: var(--market-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--market-accent) 20%, transparent);
}

.market-filter-group .custom-checkbox .form-check-input:checked {
    background-color: var(--market-accent);
    border-color: var(--market-accent);
}

.market-filter-group .custom-checkbox .form-check-label {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--market-ink);
    cursor: pointer;
}

.market-filter-group .custom-checkbox .form-check-input:checked+.form-check-label {
    font-weight: 600;
}

.market-bedroom-pills {
    display: flex;
    gap: 10px;
}

.market-bedroom-pills .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--market-line);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--market-ink);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.market-bedroom-pills .btn:hover {
    border-color: var(--market-accent);
    color: var(--market-accent);
}

.market-bedroom-pills .btn-check:checked+.btn {
    background: var(--market-accent);
    border-color: var(--market-accent);
    color: #fff;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--market-accent) 55%, transparent);
}

.market-bedroom-pills .btn-check:focus-visible+.btn {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--market-accent) 20%, transparent);
}

.market-filters-offcanvas {
    width: 390px;
}

.market-sidebar-filters {
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-md);
    padding: 22px;
    position: sticky;
    top: 96px;
    box-shadow: var(--market-shadow-sm);
}

.market-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.market-list-head h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
    margin-bottom: 5px;
}

.market-list-head p {
    color: var(--market-body);
    font-size: 14.5px;
}

/* =========================================================
   10. About / Contact
   ========================================================= */
.market-stats-strip {
    padding: 40px 0;
    border-bottom: 1px solid var(--market-line);
}

.market-stat span {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--market-ink);
}

.market-stat small {
    font-size: 13px;
    font-weight: 500;
    color: var(--market-body);
}

.market-rounded-img {
    width: 100%;
    border-radius: var(--market-radius-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: var(--market-shadow-md);
}

.market-value-card {
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-md);
    padding: 28px 24px;
    height: 100%;
}

.market-value-card:hover {
    box-shadow: var(--market-shadow-md);
    border-color: transparent;
}

.market-value-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--market-surface-alt);
    color: var(--market-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 18px;
}

.market-value-card h4 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.market-value-card p {
    font-size: 13.5px;
    color: var(--market-body);
    line-height: 1.6;
}

.market-review-card {
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-md);
    padding: 26px;
    height: 100%;
}

.market-review-stars {
    display: flex;
    margin-bottom: 14px;
    color: var(--market-star);
    font-size: 13px;
    gap: 2px;
}

.market-review-stars .is-muted {
    color: var(--market-line);
}

.market-review-card p {
    color: var(--market-ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.market-review-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.market-review-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.market-review-author strong {
    display: block;
    font-size: 13.5px;
    color: var(--market-ink);
}

.market-review-author small {
    font-size: 12px;
    color: var(--market-body);
}

.market-contact-card {
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-md);
    padding: 28px;
    text-align: center;
    height: 100%;
}

.market-contact-card:hover {
    box-shadow: var(--market-shadow-md);
}

.market-contact-card .market-value-icon {
    margin: 0 auto 18px;
}

.market-contact-card h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.market-contact-card p {
    font-size: 13.5px;
    color: var(--market-body);
    line-height: 1.7;
}

.market-contact-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--market-line);
    font-size: 12px !important;
    color: var(--market-faint) !important;
}

.market-contact-form .form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--market-ink);
    margin-bottom: 8px;
}

.market-contact-form .form-control,
.market-contact-form .form-select {
    border-radius: var(--market-radius-sm);
    border-color: var(--market-line);
    padding: 11px 15px;
    font-size: 14px;
}

.market-contact-form .form-control:focus,
.market-contact-form .form-select:focus {
    border-color: var(--market-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--market-accent) 15%, transparent);
}

.market-contact-map-frame {
    border-radius: var(--market-radius-lg);
    overflow: hidden;
    border: 1px solid var(--market-line);
    height: 100%;
    min-height: 380px;
    box-shadow: var(--market-shadow-md);
}

.market-contact-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.market-faq-accordion {
    max-width: 760px;
    margin: 0 auto;
}

.market-faq-item {
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-sm) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.market-faq-item .accordion-button {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--market-ink);
    background: var(--market-surface);
    padding: 18px 20px;
}

.market-faq-item .accordion-button:not(.collapsed) {
    color: var(--market-accent);
    background: var(--market-surface-alt);
    box-shadow: none;
}

.market-faq-item .accordion-button:focus {
    box-shadow: none;
}

.market-faq-item .accordion-body {
    font-size: 13.5px;
    color: var(--market-body);
    line-height: 1.75;
    padding: 4px 20px 22px;
}

/* =========================================================
   11. Property details page
   ========================================================= */
.market-detail-body {
    padding-bottom: 72px;
}

.market-detail-header {
    padding: 10px 0 22px;
}

.market-detail-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--market-ink);
    margin-bottom: 9px;
}

.market-detail-address {
    font-size: 14px;
    color: var(--market-body);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.market-detail-address i {
    color: var(--market-accent);
}

.market-detail-rating {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--market-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.market-detail-rating i {
    color: var(--market-star);
    font-size: 12px;
}

.market-detail-rating span {
    color: var(--market-body);
    font-weight: 500;
}

.market-detail-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.market-detail-actions .btn {
    font-size: 13px;
    padding: 10px 17px;
}

/* Gallery */
.market-detail-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    height: 460px;
    border-radius: var(--market-radius-lg);
    overflow: hidden;
    margin-bottom: 44px;
    box-shadow: var(--market-shadow-sm);
}

.market-detail-gallery-main {
    height: 100%;
    background: var(--market-surface-alt);
}

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

.market-detail-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

.market-detail-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--market-surface-alt);
}

.market-detail-gallery-more {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #fff;
    color: var(--market-ink) !important;
    border: none;
    border-radius: var(--market-radius-pill);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--market-shadow-lg);
}

.market-detail-gallery-more:hover {
    transform: translateY(-1px);
}

.market-gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.market-gallery-modal-grid img {
    width: 100%;
    border-radius: var(--market-radius-sm);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Host / spec bar */
.market-detail-host-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--market-line);
}

.market-detail-host {
    display: flex;
    align-items: center;
    gap: 13px;
}

.market-detail-host img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--market-shadow-sm);
}

.market-detail-host strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--market-ink);
}

.market-detail-host small {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--market-verified);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.market-detail-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.market-detail-spec-item {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--market-ink);
    display: flex;
    align-items: center;
    gap: 9px;
}

.market-detail-spec-item i {
    color: var(--market-accent);
    font-size: 15px;
}

/* Content sections */
.market-detail-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--market-line);
}

.market-detail-section:last-of-type {
    border-bottom: none;
}

.market-detail-section h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--market-ink);
    margin-bottom: 18px;
}

.market-detail-description {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--market-ink-soft);
}

.market-amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.market-amenity-item {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 14px;
    font-weight: 500;
    color: var(--market-ink);
}

.market-amenity-item i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--market-surface-alt);
    color: var(--market-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.market-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.market-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: 13.5px;
    color: var(--market-body);
}

.market-rule-item i {
    color: var(--market-verified);
    font-size: 16px;
    margin-top: 2px;
}

.market-rule-item strong {
    display: block;
    color: var(--market-ink);
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.market-rule-item.is-prohibited i {
    color: var(--market-danger);
}

/* Reviews */
.market-review-summary {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 22px;
    background: var(--market-surface-alt);
    border-radius: var(--market-radius-md);
}

.market-review-score {
    text-align: center;
}

.market-review-score span {
    display: block;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--market-ink);
    line-height: 1;
}

.market-review-score .market-review-stars {
    justify-content: center;
    margin: 10px 0 4px;
}

.market-review-score small {
    font-size: 12px;
    font-weight: 500;
    color: var(--market-body);
}

.market-review-bars {
    flex: 1 1 260px;
    min-width: 220px;
}

.market-review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--market-body);
    margin-bottom: 7px;
}

.market-review-bar-row span:first-child {
    width: 46px;
    flex-shrink: 0;
}

.market-review-bar-row span:last-child {
    width: 32px;
    flex-shrink: 0;
    text-align: right;
}

.market-review-bar-track {
    flex: 1;
    height: 6px;
    border-radius: var(--market-radius-pill);
    background: var(--market-line-soft);
    overflow: hidden;
}

.market-review-bar-fill {
    height: 100%;
    background: var(--market-star);
    border-radius: var(--market-radius-pill);
}

/* Similar properties scroller */
.market-similar-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
    scrollbar-width: none;
}

.market-similar-scroller::-webkit-scrollbar {
    display: none;
}

.market-similar-scroller .property-card {
    flex: 0 0 275px;
}

/* Booking widget */
.market-booking-card {
    position: sticky;
    top: 96px;
    background: var(--market-surface);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-lg);
    padding: 26px;
    box-shadow: var(--market-shadow-lg);
}

.market-booking-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}

.market-booking-amount {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--market-ink);
}

.market-booking-period {
    font-size: 13.5px;
    color: var(--market-body);
}

.market-booking-fields {
    border: 1.5px solid var(--market-line);
    border-radius: var(--market-radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.market-booking-field {
    padding: 11px 15px;
    border-bottom: 1px solid var(--market-line);
    position: relative;
}

.market-booking-field:last-child {
    border-bottom: none;
}

.market-booking-fields .row>div:first-child .market-booking-field {
    border-right: 1px solid var(--market-line);
}

.market-booking-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--market-faint);
    margin-bottom: 3px;
}

.market-booking-field input,
.market-booking-field .market-guest-trigger {
    border: none;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--market-ink);
    width: 100%;
    background: transparent;
}

.market-booking-field input:focus {
    outline: none;
    box-shadow: none;
}

.market-guest-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.market-guest-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    background: #fff;
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-sm);
    box-shadow: var(--market-shadow-xl);
    padding: 18px;
}

.market-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
}

.market-guest-row:not(:last-child) {
    border-bottom: 1px solid var(--market-line);
}

.market-guest-row strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--market-ink);
}

.market-guest-row small {
    font-size: 12px;
    color: var(--market-body);
}

.market-guest-counter {
    display: flex;
    align-items: center;
    gap: 13px;
}

.market-guest-counter button {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 1.5px solid var(--market-line);
    background: #fff;
    color: var(--market-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.market-guest-counter button:hover:not(:disabled) {
    border-color: var(--market-ink);
}

.market-guest-counter button:disabled {
    opacity: 0.35;
}

.market-booking-breakdown {
    font-size: 13.5px;
    color: var(--market-body);
    padding: 18px 0;
    border-top: 1px solid var(--market-line);
    margin-top: 4px;
}

.market-booking-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.market-booking-total {
    padding-top: 13px;
    margin-top: 4px;
    border-top: 1px solid var(--market-line);
    font-weight: 800;
    color: var(--market-ink);
    font-size: 14.5px;
}

.market-booking-note {
    font-size: 11.5px;
    color: var(--market-faint);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
    .market-hero-content {
        max-width: 660px;
    }
}

@media (max-width: 991.98px) {
    .market-hero {
        min-height: 560px;
        padding-bottom: 44px;
    }

    .market-hero-content {
        padding: 72px 0 8px;
    }

    .market-hero-search-card {
        margin-bottom: -44px;
    }

    .market-trust-strip {
        padding-top: 80px;
    }

    .market-search-toolbar {
        position: static;
    }

    .market-search-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }

    .market-detail-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .market-detail-gallery-main {
        height: 280px;
    }

    .market-detail-gallery-grid {
        display: none;
    }

    .market-booking-card {
        position: static;
        margin-top: 32px;
    }

    .market-amenity-grid,
    .market-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .market-section {
        padding: 52px 0;
    }

    .market-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-hero-content h1 {
        max-width: 100%;
    }

    .market-hero-search-card {
        margin-bottom: 0;
    }

    .market-trust-strip {
        padding-top: 40px;
    }

    .market-hero-search-field {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--market-line);
    }

    .market-hero-search-field:last-of-type {
        border-bottom: none;
    }

    .market-hero-search-form .market-hero-search-btn {
        margin: 10px 0 0;
        width: 100%;
        justify-content: center;
    }

    .market-newsletter-form {
        flex-direction: column;
    }

    .market-footer-legal {
        justify-content: flex-start;
    }

    .market-footer-bottom .text-lg-end {
        text-align: left !important;
    }

    .market-review-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===========================================================
   Empty states — shown wherever there is no real data yet.
   =========================================================== */
.market-empty-state {
    padding: 48px 24px;
    width: 100%;
    background: var(--market-surface, #fff);
    border: 1px dashed var(--market-line);
    border-radius: var(--market-radius-lg);
}

.market-empty-state-icon {
    font-size: 34px;
    color: var(--market-muted);
    margin-bottom: 14px;
}

.market-empty-state-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--market-ink);
    margin-bottom: 8px;
}

.market-empty-state-text {
    font-size: 14px;
    color: var(--market-muted);
    margin-bottom: 16px;
}

/* Muted star, used when a real average is below 5 */
.market-rating-line .fa-star.is-muted,
.market-review-stars .fa-star.is-muted {
    color: var(--market-line);
}

/* Leaflet price-tag markers on the search map */
.market-map-price-marker {
    background: none;
    border: 0;
}

.market-map-pin-inner {
    display: inline-block;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    background: var(--market-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--market-radius-pill);
    box-shadow: var(--market-shadow-md);
}

/* Initial-letter avatar — replaces the old random-avatar service */
.market-review-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--market-ink);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* "Leave a review" form on the property detail page */
.market-review-form-wrap {
    padding: 24px;
    background: var(--market-surface, #fff);
    border: 1px solid var(--market-line);
    border-radius: var(--market-radius-lg);
}

.market-review-form-wrap h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--market-ink);
    margin-bottom: 18px;
}