/* HOM8 marketplace browse — Fiverr/Airbnb-inspired, mobile-first */

.hom8-mkt,
.hom8-pf {
    --hom8-bg: #f7f7f7;
    --hom8-card: #ffffff;
    --hom8-text: #222222;
    --hom8-muted: #717171;
    --hom8-border: #dddddd;
    --hom8-primary: #222222;
    --hom8-accent: #ff385c;
    --hom8-radius: 16px;
    --hom8-radius-sm: 12px;
    --hom8-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--hom8-text);
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Default layout: fill the *container* (Elementor controls padding/width). */
.hom8-mkt,
.hom8-pf {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: visible;
}

/* Optional: full-bleed breakout when explicitly enabled. */
.hom8-mkt.hom8--fullbleed,
.hom8-pf.hom8--fullbleed {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: clip;
}

@media (max-width: 767px) {
    .hom8-mkt.hom8--fullbleed,
    .hom8-pf.hom8--fullbleed {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        left: auto;
        right: auto;
    }
}

.hom8-mkt *,
.hom8-mkt *::before,
.hom8-mkt *::after,
.hom8-pf *,
.hom8-pf *::before,
.hom8-pf *::after {
    box-sizing: border-box;
}

.hom8-mkt,
.hom8-pf {
    --hom8-link: #222222;
    --hom8-link-hover: #111111;
}

.hom8-mkt a,
.hom8-pf a {
    color: var(--hom8-link);
    text-decoration: none;
}

.hom8-mkt a:hover,
.hom8-mkt a:focus,
.hom8-pf a:hover,
.hom8-pf a:focus {
    color: var(--hom8-link-hover);
}

/* Astra/theme hardening: keep HOM8 UI stable */
.hom8-mkt button,
.hom8-mkt [role="button"],
.hom8-mkt__carousel button,
.hom8-mkt__card button,
.hom8-home .hom8-mkt__detail button,
.hom8-fav .hom8-mkt__detail button,
.hom8-fav button {
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    box-shadow: none;
}

.hom8-fav__section-head:hover,
.hom8-fav__section-head:focus,
.hom8-fav__section-head:active {
    color: var(--hom8-text, #222222) !important;
    background: transparent !important;
}

.hom8-mkt button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.hom8-mkt button:focus {
    outline: none;
}

.hom8-mkt button:focus-visible {
    outline: 2px solid rgba(34, 34, 34, 0.9);
    outline-offset: 2px;
}

.hom8-mkt__intro {
    margin-bottom: 20px;
}

.hom8-mkt__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hom8-muted);
    margin: 0 0 6px;
}

.hom8-mkt__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}

.hom8-mkt__subtitle {
    margin: 0;
    color: var(--hom8-muted);
    font-size: 15px;
    line-height: 1.5;
}

.hom8-mkt__list.hom8-home__list--vertical {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

.hom8-mkt__list.hom8-home__list--vertical .hom8-block {
    width: 100%;
    max-width: 100%;
}

.hom8-mkt__cats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hom8-mkt__cats::-webkit-scrollbar {
    display: none;
}

.hom8-mkt__cat {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    padding: 12px 14px;
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-radius);
    background: var(--hom8-card);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hom8-mkt__cat.is-active {
    border-color: var(--hom8-primary);
    border-width: 2px;
    box-shadow: var(--hom8-shadow);
}

.hom8-mkt__cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hom8-mkt__cat-icon--photography { background: linear-gradient(135deg, #434343 0%, #000000 100%); }
.hom8-mkt__cat-icon--venue { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.hom8-mkt__cat-icon--chauffeur { background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); }

.hom8-mkt__cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hom8-mkt__cat-text strong {
    font-size: 15px;
}

.hom8-mkt__cat-text small {
    font-size: 12px;
    color: var(--hom8-muted);
    line-height: 1.3;
}

.hom8-mkt__toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hom8-mkt__toolbar {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
}

.hom8-mkt__search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hom8-border);
    border-radius: 999px;
    font-size: 15px;
}

.hom8-mkt__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hom8-mkt__chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--hom8-border);
    background: var(--hom8-card);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.hom8-mkt__chip.is-active {
    background: var(--hom8-primary);
    color: #fff;
    border-color: var(--hom8-primary);
}

.hom8-mkt__filter-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--hom8-border);
    background: var(--hom8-card);
    font-weight: 600;
    cursor: pointer;
}

.hom8-mkt__status {
    min-height: 20px;
    font-size: 14px;
    color: var(--hom8-muted);
    margin-bottom: 12px;
}

.hom8-mkt__grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 768px) {
    .hom8-mkt {
        padding: 24px;
    }
    .hom8-mkt__grid {
        gap: 16px;
    }
}

/* Fiverr-style horizontal card */
.hom8-mkt__card {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 140px;
    background: var(--hom8-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.hom8-mkt__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hom8-shadow);
}

@media (min-width: 640px) {
    .hom8-mkt__card {
        grid-template-columns: 140px 1fr;
    }
}

.hom8-mkt__card-media {
    position: relative;
    background: #ebebeb;
    min-height: 140px;
    overflow: hidden;
}

.hom8-mkt__card-media > .hom8-mkt__carousel {
    position: absolute;
    inset: 0;
}

.hom8-mkt__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hom8-mkt__card-provider {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.hom8-mkt__provider-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hom8-mkt__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #ff385c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.hom8-mkt__avatar--sm {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

.hom8-mkt__avatar--md {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

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

.hom8-mkt__avatar--initial {
    background: #ff385c;
}

.hom8-mkt__card-rating-count {
    font-weight: 400;
    color: #717171;
}

.hom8-mkt__card-no-reviews {
    color: #717171;
    font-size: 13px;
}

/* Portfolio carousel — pan-y only on swipeable carousels (not static home row images) */
.hom8-mkt__carousel:not(.hom8-mkt__carousel--static) {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.hom8-mkt__carousel--static {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: auto;
}

.hom8-mkt__carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.28s ease;
    will-change: transform;
}

.hom8-mkt__carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.hom8-mkt__carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.hom8-mkt__carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.hom8-mkt__carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

.hom8-mkt__carousel-dot.is-active {
    background: #fff;
    width: 14px;
    border-radius: 999px;
}

.hom8-mkt__carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.hom8-mkt__carousel-nav .hom8-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    pointer-events: none;
}

.hom8-mkt__carousel:hover .hom8-mkt__carousel-nav,
.hom8-mkt__carousel:focus-within .hom8-mkt__carousel-nav {
    opacity: 1;
}

.hom8-mkt__carousel--block .hom8-mkt__carousel-nav {
    opacity: 1;
}

.hom8-mkt__carousel-nav--prev { left: 6px; }
.hom8-mkt__carousel-nav--next { right: 6px; }

.hom8-mkt__carousel--detail {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}

.hom8-mkt__carousel--detail .hom8-mkt__carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.hom8-mkt__carousel-empty,
.hom8-mkt__carousel--empty .hom8-mkt__carousel-empty {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.hom8-mkt__detail-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.hom8-mkt__detail-provider p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--hom8-muted);
}

.hom8-mkt__detail-hero {
    width: 100%;
    margin: 0;
    line-height: 0;
}

.hom8-mkt__detail-hero .hom8-mkt__carousel--detail {
    width: 100%;
    border-radius: 20px 20px 0 0;
}

@media (min-width: 768px) {
    .hom8-mkt__detail-hero .hom8-mkt__carousel--detail {
        border-radius: var(--hom8-radius) var(--hom8-radius) 0 0;
    }
}

.hom8-mkt__detail-content {
    padding: 16px 16px 24px;
}

@media (min-width: 768px) {
    .hom8-mkt__detail-content {
        padding: 20px 24px 28px;
    }
}

.hom8-mkt__detail-writeup {
    margin: 0 0 16px;
    color: var(--hom8-muted);
    font-size: 15px;
    line-height: 1.5;
}

.hom8-mkt__card-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
}

.hom8-mkt__card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hom8-mkt__card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.hom8-mkt__card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.hom8-mkt__card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.hom8-mkt__card-loc {
    margin: 0;
    font-size: 13px;
    color: var(--hom8-muted);
}

.hom8-mkt__card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hom8-mkt__card-price {
    font-size: 14px;
}

.hom8-mkt__card-price strong {
    font-size: 18px;
    font-weight: 700;
}

.hom8-mkt__badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0f0f0;
    font-size: 11px;
    font-weight: 600;
}

/* Detail drawer / modal */
.hom8-mkt__detail,
.hom8-mkt__filters-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.hom8-mkt__detail[hidden],
.hom8-mkt__filters-sheet[hidden] {
    display: none !important;
}

.hom8-mkt__detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    touch-action: none;
}

.hom8-mkt__detail-panel,
.hom8-mkt__filters-panel {
    position: absolute;
    background: var(--hom8-card);
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hom8-mkt__detail-panel {
    inset: auto 0 0 0;
    left: 0;
    right: 0;
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 0 0 32px;
    transform: none !important;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
}

.hom8-mkt__detail-body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .hom8-mkt__detail-panel {
        inset: 5vh auto auto 50%;
        transform: translateX(-50%);
        width: min(720px, 92vw);
        max-height: 90vh;
        border-radius: var(--hom8-radius);
        padding: 0 0 24px;
    }
}

.hom8-mkt__detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    float: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #222 !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    transform: none !important;
}

.hom8-mkt__detail-close .hom8-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    pointer-events: none;
}

/* Icon-only buttons: hide glyph, show centred spinner.
   Close / dismiss controls are excluded — they never use a loading state. */
.is-icon-loading.is-loading {
    pointer-events: none;
    cursor: wait;
    position: relative;
}

.is-icon-loading.is-loading > *:not(.hom8-btn-spinner):not(.hom8-tab-spinner):not(.hom8-mobile-tabbar__icon-wrap):not(.hom8-mobile-tabbar__label) {
    opacity: 0;
    visibility: hidden;
}

.is-icon-loading.is-loading .hom8-btn-spinner,
.is-icon-loading.is-loading .hom8-tab-spinner {
    opacity: 1 !important;
    visibility: visible !important;
    animation: hom8-btn-spin 0.65s linear infinite !important;
    -webkit-animation: hom8-btn-spin 0.65s linear infinite !important;
}

/* Tab bar: keep icon wrap visible so the spinner inside can show on every tab */
a.hom8-mobile-tabbar__item.is-icon-loading.is-loading > .hom8-mobile-tabbar__icon-wrap {
    opacity: 1 !important;
    visibility: visible !important;
}

a.hom8-mobile-tabbar__item.is-icon-loading.is-loading .hom8-mobile-tabbar__icon,
a.hom8-mobile-tabbar__item.is-icon-loading.is-loading .hom8-mobile-tabbar__badge {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Tab bar: icon spins, label stays visible.
   Do NOT set pointer-events:none on touchstart — that cancels the click on iOS. */
a.hom8-mobile-tabbar__item.is-tab-loading {
    cursor: wait;
}

a.hom8-mobile-tabbar__item.is-tab-loading .hom8-mobile-tabbar__icon {
    opacity: 0 !important;
    visibility: hidden !important;
}

a.hom8-mobile-tabbar__item.is-tab-loading .hom8-mobile-tabbar__label {
    opacity: 1 !important;
    visibility: visible !important;
}

a.hom8-mobile-tabbar__item.is-tab-loading .hom8-tab-spinner {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: hom8-btn-spin 0.65s linear infinite !important;
    -webkit-animation: hom8-btn-spin 0.65s linear infinite !important;
}

.is-icon-loading.is-loading::before {
    display: none !important;
    content: none !important;
}

.hom8-mkt__detail h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.hom8-mkt__detail p {
    color: var(--hom8-muted);
    line-height: 1.55;
}

.hom8-mkt__pkg-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 12px;
    flex-wrap: wrap;
}

.hom8-mkt__pkg-tab {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--hom8-border) !important;
    background: #fff !important;
    color: #222 !important;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0 !important;
    box-shadow: none !important;
}

.hom8-mkt__pkg-tab.is-active {
    background: var(--hom8-primary) !important;
    color: #fff !important;
    border-color: var(--hom8-primary) !important;
}

.hom8-mkt__pkg-panel {
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-radius-sm);
    padding: 16px;
}

.hom8-mkt__pkg-price {
    margin: 0 0 12px;
    font-size: 18px;
}

.hom8-mkt__pkg-empty {
    margin: 0;
    color: var(--hom8-muted);
    font-size: 14px;
    line-height: 1.5;
}

.hom8-mkt__pkg-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.hom8-mkt__pkg-line:last-child {
    border-bottom: none;
}

.hom8-mkt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--hom8-btn-py, 16px) var(--hom8-btn-px, 24px);
    border-radius: var(--hom8-btn-radius, 999px);
    border: none;
    font-size: var(--hom8-btn-font, 16px);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.hom8-mkt__btn--primary {
    background: var(--hom8-primary);
    color: #fff !important;
    width: 100%;
    margin-top: 8px;
}

.hom8-mkt__btn--primary:hover,
.hom8-mkt__btn--primary:focus {
    color: #fff !important;
    background: var(--hom8-primary);
}

.hom8-mkt__btn--ghost {
    background: transparent;
    border: 1px solid var(--hom8-border);
}

.hom8-mkt__btn--primary:hover,
.hom8-mkt__btn--primary:focus {
    background: #111111;
    color: #fff !important;
}

.hom8-mkt__btn.is-loading,
.hom8-auth__submit.is-loading,
.hom8-msg__composer button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.95;
    cursor: wait;
}

.hom8-mkt__btn.is-loading::before,
.hom8-auth__submit.is-loading::before,
.hom8-msg__composer button.is-loading::before,
a.hom8-fav__cta.is-loading::before,
a.hom8-home__provider-btn.is-loading::before,
a.hom8-pf__gate-btn.is-loading::before,
a.hom8-home__show-all.is-loading::before,
a.hom8-mkt__back.is-loading::before,
button.hom8-pf__btn.is-loading::before,
button.hom8-msg__signin.is-loading::before,
button.hom8-msg__thread.is-loading::before,
button.hom8-mkt__detail-loc-change.is-loading::before,
button.hom8-booking-tray__add-link.is-loading::before,
.hom8-home__show-all-card.is-loading::before,
a.hom8-mobile-tabbar__item.is-loading::before {
    display: none !important;
    content: none !important;
}

/* Global HOM8 action loading — buttons, links, cards, tab bar */
a.hom8-fav__cta.is-loading,
a.hom8-home__provider-btn.is-loading,
a.hom8-pf__gate-btn.is-loading,
a.hom8-home__show-all.is-loading,
a.hom8-mkt__back.is-loading,
a.hom8-mobile-tabbar__item.is-loading,
button.hom8-pf__btn.is-loading,
button.hom8-msg__signin.is-loading,
button.hom8-msg__thread.is-loading,
button.hom8-mkt__detail-loc-change.is-loading,
button.hom8-booking-tray__add-link.is-loading,
.hom8-home__show-all-card.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    cursor: wait;
    opacity: 0.92;
}

a.hom8-mobile-tabbar__item.is-loading {
    position: relative;
    flex-direction: column;
    opacity: 1;
}

a.hom8-mobile-tabbar__item.is-loading > .hom8-mobile-tabbar__icon-wrap,
a.hom8-mobile-tabbar__item.is-icon-loading > .hom8-mobile-tabbar__icon-wrap {
    opacity: 1 !important;
    visibility: visible !important;
}

a.hom8-mobile-tabbar__item.is-loading .hom8-mobile-tabbar__icon,
a.hom8-mobile-tabbar__item.is-icon-loading .hom8-mobile-tabbar__icon {
    opacity: 0;
    visibility: hidden;
}

a.hom8-mobile-tabbar__item.is-loading .hom8-mobile-tabbar__label,
a.hom8-mobile-tabbar__item.is-icon-loading .hom8-mobile-tabbar__label {
    opacity: 1;
    visibility: visible;
}

article.hom8-block.is-loading {
    pointer-events: none;
    opacity: 0.82;
    position: relative;
}

article.hom8-block.is-loading::after,
.hom8-home__show-all-card.is-loading::before {
    display: none !important;
    content: none !important;
}

.is-icon-loading.is-loading .hom8-btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    z-index: 3;
}

.hom8-block-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-width: 3px;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hom8-mkt__btn.is-loading .hom8-btn-spinner,
.hom8-auth__submit.is-loading .hom8-btn-spinner,
.hom8-msg__composer button.is-loading .hom8-btn-spinner,
a.hom8-fav__cta.is-loading .hom8-btn-spinner,
a.hom8-home__provider-btn.is-loading .hom8-btn-spinner,
a.hom8-pf__gate-btn.is-loading .hom8-btn-spinner,
a.hom8-home__show-all.is-loading .hom8-btn-spinner,
a.hom8-mkt__back.is-loading .hom8-btn-spinner,
button.hom8-pf__btn.is-loading .hom8-btn-spinner,
button.hom8-msg__signin.is-loading .hom8-btn-spinner,
button.hom8-msg__thread.is-loading .hom8-btn-spinner,
button.hom8-mkt__detail-loc-change.is-loading .hom8-btn-spinner,
button.hom8-booking-tray__add-link.is-loading .hom8-btn-spinner,
.hom8-home__show-all-card.is-loading .hom8-btn-spinner,
article.hom8-block.is-loading .hom8-block-spinner {
    animation: hom8-btn-spin 0.65s linear infinite !important;
    -webkit-animation: hom8-btn-spin 0.65s linear infinite !important;
}

.hom8-mkt__btn--outline {
    background: #ffffff;
    color: var(--hom8-text) !important;
    border: 1px solid var(--hom8-border);
    width: 100%;
    border-radius: 999px !important;
}

.hom8-mkt__btn--outline:hover,
.hom8-mkt__btn--outline:focus {
    background: #f7f7f7;
    color: var(--hom8-text) !important;
    border-color: #c8c8c8;
}

.hom8-mkt__detail-panel {
    -webkit-overflow-scrolling: touch;
}

.hom8-mkt__detail-actions {
    margin-top: 8px;
}

.hom8-mkt__detail-actions .hom8-mkt__btn--primary {
    margin-top: 12px;
}

/* ── Mobile optimizations ── */
@media (max-width: 767px) {
    .hom8-mkt {
        padding: 16px 16px 24px;
    }

    .hom8-mkt__cat {
        min-width: min(200px, 78vw);
    }

    .hom8-mkt__card {
        grid-template-columns: 96px 1fr;
        min-height: 120px;
        border-radius: 14px;
    }

    .hom8-mkt__card-media {
        min-height: 120px;
    }

    .hom8-mkt__card-body {
        padding: 10px 12px;
    }

    .hom8-mkt__card-title {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hom8-mkt__detail-panel {
        max-height: 92dvh;
        width: 100%;
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        padding-bottom: 0;
    }

    .hom8-mkt__detail-close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }

    .hom8-mkt__detail h3 {
        font-size: 1.25rem;
        padding-right: 44px;
    }

    .hom8-mkt__detail-content {
        padding: 14px 16px 8px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .hom8-mkt__detail-actions {
        position: sticky;
        bottom: 0;
        z-index: 3;
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 18%);
        border-top: 1px solid #eeeeee;
    }

    .hom8-mkt__detail-actions .hom8-mkt__btn--primary {
        margin-top: 0;
        min-height: 48px;
        font-size: 16px;
    }

    .hom8-mkt__detail-extra {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .hom8-mkt__detail-extra em {
        white-space: normal;
        text-align: right;
        font-size: 13px;
    }

    .hom8-mkt__pkg-tab {
        min-height: 44px;
        padding: 10px 14px;
    }

    .hom8-mkt__carousel-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .hom8-mkt__field input,
    .hom8-mkt__field textarea {
        font-size: 16px;
    }

    .hom8-mkt__filters-panel {
        max-height: 85dvh;
        overflow-y: auto;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .hom8-mkt__detail-loc-change {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .hom8-mkt__detail-loc-display {
        min-height: 48px;
    }
}

.hom8-mkt__filters-panel {
    inset: auto 0 0 0;
    padding: 20px;
    border-radius: 20px 20px 0 0;
}

.hom8-mkt__filters-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hom8-mkt__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.hom8-mkt__field input {
    padding: var(--hom8-input-py, 14px) var(--hom8-input-px, 16px);
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-control-radius, 12px);
    font-size: var(--hom8-input-font, 16px);
}

.hom8-mkt__field textarea {
    padding: var(--hom8-input-py, 14px) var(--hom8-input-px, 16px);
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-control-radius, 12px);
    font-size: var(--hom8-input-font, 16px);
    font: inherit;
    resize: vertical;
    min-height: 96px;
}

.hom8-mkt__filters-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hom8-mkt__empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--hom8-card);
    border-radius: var(--hom8-radius);
    border: 1px dashed var(--hom8-border);
}

.hom8-mkt__empty h3 {
    margin: 0 0 8px;
}

.hom8-mkt__empty p {
    margin: 0;
    color: var(--hom8-muted);
}

/* Fullscreen swipeable image gallery */
.hom8-image-gallery {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.hom8-image-gallery[hidden] {
    display: none !important;
}

.hom8-image-gallery__backdrop {
    position: absolute;
    inset: 0;
    background: #000000;
    cursor: zoom-out;
    opacity: 1;
}

.hom8-image-gallery__close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

.hom8-image-gallery__close:hover,
.hom8-image-gallery__close:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}

.hom8-image-gallery__close .hom8-icon,
.hom8-image-gallery__close .bi {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    pointer-events: none;
    color: #ffffff !important;
}

.hom8-image-gallery__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-top: auto;
    margin-bottom: auto;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

.hom8-image-gallery__nav:hover,
.hom8-image-gallery__nav:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.hom8-image-gallery__nav .hom8-icon,
.hom8-image-gallery__nav .bi {
    font-size: 22px;
    line-height: 1;
    display: inline-block;
    pointer-events: none;
    color: #ffffff !important;
}

.hom8-image-gallery__nav--prev {
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: auto;
}

.hom8-image-gallery__nav--next {
    right: calc(12px + env(safe-area-inset-right, 0px));
    left: auto;
}

.hom8-image-gallery__scroller {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hom8-image-gallery__scroller::-webkit-scrollbar {
    display: none;
}

.hom8-image-gallery__track {
    display: flex;
    height: 100%;
    align-items: center;
}

.hom8-image-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(48px + env(safe-area-inset-top, 0px))
        0
        calc(40px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: #000000;
}

.hom8-image-gallery__slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 1;
}

.hom8-image-gallery__counter {
    position: absolute;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hom8-mkt__carousel--zoomable {
    cursor: zoom-in;
}

/* Inline booking on service detail */
.hom8-mkt__detail-content h4 {
    margin: 24px 0 12px;
    font-size: 1rem;
    font-weight: 700;
}

.hom8-mkt__detail-location {
    margin-top: 8px;
    padding-top: 8px;
    color: var(--hom8-text, #222222);
}

.hom8-mkt__detail-loc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hom8-mkt__detail-loc-head h4 {
    margin: 0;
    flex: 1;
}

.hom8-mkt__detail-loc-change {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--hom8-text, #222222) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
}

.hom8-mkt__detail-loc-change:hover,
.hom8-mkt__detail-loc-change:focus {
    color: #111111 !important;
    background: transparent !important;
}

.hom8-mkt__detail-loc-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--hom8-border, #dddddd);
    border-radius: 12px;
    background: #fff;
}

.hom8-mkt__detail-loc-display.is-invalid,
.hom8-mkt__detail-loc-display.is-empty.is-invalid {
    border-color: rgba(180, 35, 24, 0.55);
    box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.2);
}

.hom8-mkt__detail-loc-picker-label {
    font-size: 13px;
    color: var(--hom8-muted, #717171) !important;
}

.hom8-mkt__detail-loc-picker-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--hom8-text, #222222) !important;
    line-height: 1.35;
}

.hom8-mkt__detail-loc-display.is-empty .hom8-mkt__detail-loc-picker-value {
    color: var(--hom8-muted, #717171) !important;
    font-weight: 500;
}

.hom8-mkt__detail-schedule.is-invalid {
    border: 1px solid rgba(180, 35, 24, 0.55);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.2);
}

.hom8-field-error {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #b42318 !important;
}

.hom8-mkt__detail-location h4 {
    margin-top: 24px;
    color: var(--hom8-text, #222222) !important;
}

.hom8-mkt__detail-loc-head h4 {
    margin-top: 0;
}

.hom8-mkt__detail-loc-lead {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--hom8-muted, #717171) !important;
    line-height: 1.45;
}

.hom8-mkt__detail-loc-add {
    display: inline-flex;
    margin-top: 12px;
    width: auto;
    color: var(--hom8-text, #222222) !important;
}

.hom8-mkt__detail-loc-add-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hom8-text, #222222) !important;
}

.hom8-mkt__detail-location .hom8-booking__loc-option,
.hom8-mkt__detail-location .hom8-booking__loc-option:hover,
.hom8-mkt__detail-location .hom8-booking__loc-option:focus,
.hom8-mkt__detail-location .hom8-booking__loc-option.is-active,
.hom8-home .hom8-mkt__detail-location .hom8-booking__loc-option,
.hom8-home .hom8-mkt__detail-location .hom8-booking__loc-option:hover,
.hom8-home .hom8-mkt__detail-location .hom8-booking__loc-option:focus {
    color: #222222 !important;
}

.hom8-mkt__detail-location .hom8-booking__loc-option strong,
.hom8-mkt__detail-location .hom8-booking__loc-option.is-active strong {
    color: #222222 !important;
}

.hom8-mkt__detail-location .hom8-booking__loc-option span {
    color: #717171 !important;
}

.hom8-mkt__detail-loc-empty {
    font-size: 14px;
    color: var(--hom8-muted, #717171) !important;
}

.hom8-mkt__detail-extras {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-radius-sm);
    padding: 4px 14px;
}

.hom8-mkt__detail-extra {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--hom8-border);
    cursor: pointer;
    font-size: 14px;
}

.hom8-mkt__detail-extra:last-child {
    border-bottom: none;
}

.hom8-mkt__detail-extra small {
    display: block;
    color: var(--hom8-muted);
    font-weight: 400;
}

.hom8-mkt__detail-extra em {
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.hom8-mkt__detail-schedule {
    display: grid;
    gap: 4px;
}

.hom8-mkt__detail-summary {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid var(--hom8-border);
    border-radius: var(--hom8-radius-sm);
    background: #fafafa;
}

.hom8-mkt__detail-summary h4 {
    margin-top: 0;
}

.hom8-mkt__detail-loc-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--hom8-border);
}

.hom8-mkt__detail-loc-section h5 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.hom8-mkt__detail-loc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hom8-mkt__detail-loc-empty {
    font-size: 14px;
    color: var(--hom8-muted);
}

.hom8-mkt__detail-loc-link {
    color: var(--hom8-text);
    font-weight: 600;
}
