/* ═══════════════════════════════════════════════
   Dubai Communities v16 — Frontend CSS
   Clean rewrite. !important used only where
   WordPress themes override our styles.
═══════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────── */
.dc-listing, .dc-detail {
    --dc-accent:     #B28B33;
    --dc-btn-search: #B28B33;
    --dc-wa:         #25D366;
    --dc-card-bg:    #ffffff;
    --dc-text:       #1a1a1a;
    --dc-muted:      #777777;
    --dc-border:     #e4e4e4;
    --dc-radius:     14px;
    --dc-shadow:     0 1px 10px rgba(0,0,0,0.06);

    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--dc-text);
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.dc-listing *, .dc-listing *::before, .dc-listing *::after,
.dc-detail *,  .dc-detail *::before,  .dc-detail *::after,
.dc-drawer *,  .dc-drawer *::before,  .dc-drawer *::after {
    box-sizing: border-box;
}

/* Reset theme bleeds */
.dc-listing a, .dc-detail a { color: inherit; text-decoration: none; }
.dc-listing button, .dc-detail button { font-family: inherit; text-transform: none; letter-spacing: normal; }

/* ── Utility ─────────────────────────────────── */
.dc-link {
    background: none; border: none;
    color: var(--dc-accent); text-decoration: underline;
    font-size: inherit; cursor: pointer; padding: 0; font-family: inherit;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   !important needed — themes target `button` globally
═══════════════════════════════════════════════ */
.dc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 18px !important;
    border-radius: var(--dc-radius) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: filter 0.18s, background 0.18s !important;
    outline: none !important;
    box-shadow: none !important;
    border: 1.5px solid transparent !important;
    white-space: nowrap !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
}

.dc-btn--block { width: 100% !important; }
.dc-btn--icon  { width: 44px !important; height: 44px !important; padding: 0 !important; flex-shrink: 0 !important; }

.dc-btn--primary {
    background: var(--dc-accent) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--dc-accent) !important;
}
.dc-btn--primary:hover { filter: brightness(0.88); }

.dc-btn--outline {
    background: transparent !important;
    color: var(--dc-text) !important;
    -webkit-text-fill-color: var(--dc-text) !important;
    border-color: var(--dc-border) !important;
}
.dc-btn--outline:hover { border-color: #999 !important; }

.dc-btn--wa {
    background: var(--dc-wa) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--dc-wa) !important;
}
.dc-btn--wa:hover { filter: brightness(0.9); }
.dc-btn--wa svg { fill: #fff !important; }

.dc-btn--apply {
    background: var(--dc-btn-search) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: var(--dc-btn-search) !important;
    padding: 11px 26px !important;
}
.dc-btn--apply:hover { filter: brightness(0.88); }

.dc-btn--reset {
    background: transparent !important;
    color: var(--dc-text) !important;
    -webkit-text-fill-color: var(--dc-text) !important;
    border-color: var(--dc-border) !important;
    padding: 11px 26px !important;
}
.dc-btn--reset:hover { border-color: #999 !important; }

/* ── Spec Badge ──────────────────────────────── */
.dc-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid var(--dc-border);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
    color: var(--dc-muted);
    background: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.dc-spec-badge svg { stroke: #aaa; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════ */
.dc-topbar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--dc-radius);
    padding: 6px 6px 6px 20px;
    box-shadow: var(--dc-shadow);
    margin-bottom: 16px;
    position: relative;
    z-index: 100;
}

.dc-topbar__group {
    flex: 1;
    border-right: 1px solid var(--dc-border);
    position: relative;
}
.dc-topbar__group:last-of-type { border-right: none; }

/* Topbar buttons — scoped tightly so they don't affect .dc-btn */
.dc-topbar__btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 48px;
    padding: 8px 18px !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    text-align: left !important;
    text-shadow: none !important;
    /* Color explicitly set — scoped only to this button type */
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.dc-topbar__label {
    font-size: 16px !important;
    font-weight: 300 !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.dc-topbar__btn svg { stroke: #666 !important; flex-shrink: 0; transition: transform 0.2s; }
.dc-topbar__group[data-open] .dc-topbar__btn svg { transform: rotate(180deg); }

/* Dropdown panels */
.dc-topbar__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: #fff !important;
    border-radius: var(--dc-radius);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    border: 1px solid #f0f0f0;
    z-index: 200;
}
.dc-topbar__panel[hidden] { display: none; }
.dc-panel-inner { padding: 16px; }

.dc-panel-title {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    color: #999; margin: 0 0 10px;
}
.dc-panel-title--gap { margin-top: 16px; }
.dc-range-val { font-weight: 500; color: #1a1a1a; text-transform: none; }

.dc-check-label {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 0; font-size: 14px; color: #1a1a1a; cursor: pointer;
}
.dc-check-label input { margin: 0; accent-color: var(--dc-accent); }

/* Search button — full reset, separate from .dc-btn */
.dc-topbar__search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: var(--dc-btn-search) !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    border-radius: calc(var(--dc-radius) - 2px) !important;
    padding: 0 24px !important;
    margin-left: 8px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 48px;
    transition: filter 0.18s;
}
.dc-topbar__search:hover { filter: brightness(0.88); }
.dc-topbar__search svg { stroke: #fff !important; }

/* ═══════════════════════════════════════════════
   FILTER PANEL
═══════════════════════════════════════════════ */
.dc-filter-panel {
    background: #f6f6f6;
    border-radius: var(--dc-radius);
    margin-bottom: 18px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.dc-filter-panel:not([hidden]) { max-height: 1000px; }
.dc-filter-panel[hidden] { display: block; max-height: 0; }
.dc-filter-panel__inner { padding: 22px; }

.dc-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 24px;
    align-items: start;
}
.dc-filter-col--wide { grid-column: span 1; }
.dc-filter-col__title {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #999; margin: 0 0 10px;
}
.dc-filter-divider { height: 1px; background: #e4e4e4; margin: 18px 0; }
.dc-filter-actions { display: flex; gap: 10px; align-items: center; }

/* Pills */
.dc-pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-pill { cursor: pointer; margin: 0; }
.dc-pill input { display: none; }
.dc-pill span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px; border: 1px solid var(--dc-border);
    border-radius: 7px; font-size: 13px; font-weight: 400;
    color: #555; background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    cursor: pointer; user-select: none;
}
.dc-pill span:hover { border-color: #aaa; }
.dc-pill--on span,
.dc-pill input:checked + span {
    background: #1a1a1a; border-color: #1a1a1a; color: #fff;
}
.dc-amen-icon { width: 16px; height: 16px; object-fit: contain; }

/* Dual range slider */
.dc-slider-wrap { position: relative; height: 32px; margin: 4px 0; }
.dc-slider-track {
    position: absolute; top: 50%; left: 0; right: 0;
    height: 4px; background: #ddd; border-radius: 2px;
    transform: translateY(-50%); pointer-events: none;
}
.dc-slider-fill {
    position: absolute; height: 100%;
    background: var(--dc-btn-search) !important; border-radius: 2px;
}
.dc-range {
    position: absolute !important; top: 50% !important; left: 0 !important;
    width: 100% !important; height: 4px !important;
    background: transparent !important; transform: translateY(-50%) !important;
    outline: none !important; pointer-events: none;
    -webkit-appearance: none !important; appearance: none !important;
    margin: 0 !important; padding: 0 !important;
    border: none !important; box-shadow: none !important;
}
.dc-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 18px !important; height: 18px !important; border-radius: 50% !important;
    background: #fff !important; border: 2px solid var(--dc-btn-search) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important;
    cursor: pointer; pointer-events: all;
}
.dc-range::-moz-range-thumb {
    width: 18px !important; height: 18px !important; border-radius: 50% !important;
    background: #fff !important; border: 2px solid var(--dc-btn-search) !important;
    cursor: pointer; pointer-events: all;
}

/* ═══════════════════════════════════════════════
   RESULTS HEADER
═══════════════════════════════════════════════ */
.dc-results-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.dc-results-count { font-size: 14px; color: var(--dc-muted); margin: 0; }
.dc-results-count strong { font-size: 16px; font-weight: 600; color: var(--dc-text); }

.dc-filter-toggle {
    position: relative;
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 40px !important; height: 40px !important;
    background: #fff !important; background-image: none !important;
    border: 1px solid var(--dc-border) !important; border-radius: 9px !important;
    cursor: pointer !important; padding: 0 !important;
    outline: none !important; box-shadow: none !important;
    transition: border-color 0.15s;
}
.dc-filter-toggle:hover { border-color: #999 !important; }
.dc-filter-toggle svg { stroke: #666; }
.dc-filter-badge {
    position: absolute; top: -7px; right: -7px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--dc-accent); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 18px;
    text-align: center; border-radius: 9px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.dc-filter-badge[hidden] { display: none; }

/* ═══════════════════════════════════════════════
   GRID
═══════════════════════════════════════════════ */
.dc-listing .dc-grid,
.dc-grid {
    --dc-cols: 3;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}
.dc-empty  { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--dc-muted); }
.dc-no-match { text-align: center; padding: 28px; color: var(--dc-muted); }
.dc-no-match[hidden] { display: none; }

/* ═══════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════ */
.dc-card {
    background: var(--dc-card-bg);
    border-radius: var(--dc-radius);
    overflow: hidden;
    box-shadow: var(--dc-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.09); }

.dc-card__gallery { display: block; text-decoration: none; flex-shrink: 0; }

.dc-card__main-img {
    aspect-ratio: 4/3;
    background: #ebebeb no-repeat center/cover;
    display: flex; align-items: center; justify-content: center;
}
.dc-card__no-img { font-size: 13px; color: #bbb; }

.dc-card__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; }
.dc-card__thumb { aspect-ratio: 3/2; background: #e0e0e0 no-repeat center/cover; position: relative; }
.dc-card__img-count {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.42);
    display: flex; align-items: center; justify-content: center;
    gap: 4px; color: #fff; font-size: 12px; font-weight: 500;
}
.dc-card__img-count svg { stroke: #fff; }

.dc-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.dc-card { position: relative; }
.dc-card[data-href] { cursor: pointer; }

/* Whole-card overlay link covers the card; interactive controls are lifted above it */
.dc-card__overlay-link {
    position: absolute; inset: 0; z-index: 1;
    text-indent: -9999px; overflow: hidden;
}
.dc-card__actions { position: relative; z-index: 2; }

.dc-card__location {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--dc-muted); margin: 0;
}
.dc-card__location svg { stroke: #bbb; flex-shrink: 0; }

.dc-card__specs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* Title — dark, never gold */
.dc-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin: 2px 0;
    text-decoration: none;
}
/* Hover only on mouse devices */
@media (hover: hover) {
    .dc-card__title:hover { color: var(--dc-accent) !important; -webkit-text-fill-color: var(--dc-accent) !important; }
}

.dc-card__desc {
    font-size: 12px; color: var(--dc-muted); margin: 0; line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dc-card__actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.dc-card__actions .dc-btn--primary { flex: 1 !important; }
.dc-card__actions .dc-btn--wa { width: 40px !important; height: 40px !important; padding: 0 !important; flex-shrink: 0 !important; }

/* Load More.
   Elementor and most themes ship a global button/link hover colour with
   !important. Without matching !important here, that colour (often the theme's
   pink/primary) overrides the accent on :hover. Every interactive state is
   pinned so nothing upstream can repaint it. */
.dc-listing .dc-load-more,
.dc-listing button.dc-load-more,
.elementor-widget-container .dc-listing .dc-load-more {
    display: block; margin: 26px auto 0;
    padding: 10px 30px;
    background: #fff !important;
    background-image: none !important;
    color: var(--dc-accent) !important;
    border: 1.5px solid var(--dc-accent) !important;
    border-radius: calc(var(--dc-radius) - 2px);
    font-size: 13px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    transition: background-color 0.18s, color 0.18s;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    fill: var(--dc-accent) !important;
}

.dc-listing .dc-load-more:hover,
.dc-listing .dc-load-more:focus,
.dc-listing .dc-load-more:active,
.dc-listing button.dc-load-more:hover,
.dc-listing button.dc-load-more:focus,
.dc-listing button.dc-load-more:active,
.elementor-widget-container .dc-listing .dc-load-more:hover,
.elementor-widget-container .dc-listing .dc-load-more:focus,
.elementor-widget-container .dc-listing .dc-load-more:active {
    background: var(--dc-accent) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: var(--dc-accent) !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    fill: #fff !important;
}

.dc-listing .dc-load-more:focus-visible {
    outline: 2px solid var(--dc-accent) !important;
    outline-offset: 2px;
}

.dc-load-more[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════
   DRAWER
═══════════════════════════════════════════════ */
.dc-drawer { position: fixed; inset: 0; z-index: 99999; pointer-events: none; }
.dc-drawer[aria-hidden="false"] { pointer-events: all; }

.dc-drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0; transition: opacity 0.3s ease;
}
.dc-drawer[aria-hidden="false"] .dc-drawer__backdrop { opacity: 1; }

.dc-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 460px; max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 28px rgba(0,0,0,0.10);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.dc-drawer[aria-hidden="false"] .dc-drawer__panel { transform: translateX(0); }

.dc-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--dc-border); flex-shrink: 0;
}
.dc-drawer__kicker {
    display: block; font-size: 10px; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--dc-accent); margin-bottom: 2px;
}
.dc-drawer__unit-name { font-size: 14px; font-weight: 500; color: var(--dc-text); margin: 0; line-height: 1.3; }

.dc-drawer__close {
    width: 34px !important; height: 34px !important;
    border: 1px solid var(--dc-border) !important; border-radius: 50% !important;
    background: #fff !important; background-image: none !important;
    cursor: pointer !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; outline: none !important; box-shadow: none !important; flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    color: #555 !important; -webkit-text-fill-color: #555 !important;
}
.dc-drawer__close:hover { background: #f5f5f5 !important; border-color: #bbb !important; }
.dc-drawer__close svg { stroke: #555; }

.dc-drawer__body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.dc-drawer__body iframe { width: 100%; height: 100%; border: 0; display: block; flex: 1; }

/* ═══════════════════════════════════════════════
   DETAIL PAGE
═══════════════════════════════════════════════ */
.dc-detail { max-width: 1160px; margin: 0 auto; padding: 24px 20px 48px; }

.dc-detail__breadcrumb { margin-bottom: 12px; }
.dc-detail__breadcrumb a { font-size: 13px; color: var(--dc-muted); }
.dc-detail__breadcrumb a:hover { color: var(--dc-text); }

.dc-detail__layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start; }

.dc-detail__title { font-size: 22px; font-weight: 600; color: var(--dc-text); margin: 0 0 5px; line-height: 1.25; }
.dc-detail__location { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--dc-muted); margin: 0 0 16px; }
.dc-detail__location svg { stroke: #ccc; flex-shrink: 0; }

.dc-detail__desc { margin-bottom: 14px; }
.dc-detail__desc-text { font-size: 14px; font-weight: 400; color: #555; line-height: 1.7; margin: 0; }

.dc-read-more {
    background: none !important; border: none !important;
    color: var(--dc-accent) !important; font-size: 13px; font-weight: 500;
    cursor: pointer; padding: 3px 0 0; display: inline-block;
    font-family: inherit; outline: none !important; box-shadow: none !important;
}

.dc-detail__divider { height: 1px; background: #eee; margin: 18px 0; }

/* Gallery */
.dc-detail__gallery-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dc-detail__gallery-title { font-size: 30px; font-weight: 300; color: var(--dc-text); margin: 0; font-style: italic; }

.dc-detail__img-count {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border: 1px solid var(--dc-border); border-radius: 7px;
    font-size: 12px; font-weight: 500; color: #555;
}
.dc-detail__img-count svg { stroke: #888; }

.dc-gallery__main { aspect-ratio: 16/10; background: #eee; border-radius: var(--dc-radius); overflow: hidden; position: relative; }
.dc-gallery__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.dc-gallery__slide.active { opacity: 1; }
.dc-gallery__main:focus { outline: none; }

/* Gallery nav arrows */
.dc-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px !important; height: 40px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: rgba(255,255,255,0.92) !important; background-image: none !important;
    border: none !important; border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    cursor: pointer !important; padding: 0 !important; z-index: 4;
    color: #1a1a1a !important; outline: none !important;
    opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.dc-gallery__nav svg { stroke: #1a1a1a; }
.dc-gallery__nav--prev { left: 12px; }
.dc-gallery__nav--next { right: 12px; }
.dc-gallery__main:hover .dc-gallery__nav,
.dc-gallery__main:focus-within .dc-gallery__nav { opacity: 1; }
.dc-gallery__nav:hover { background: #fff !important; }

.dc-gallery__thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; padding-bottom: 3px; }
.dc-gallery__thumbs::-webkit-scrollbar { height: 3px; }
.dc-gallery__thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.dc-detail .dc-gallery__thumb {
    flex-shrink: 0; width: 74px; height: 54px; border-radius: 7px; overflow: hidden;
    border: 1px solid #e4e4e4 !important;
    padding: 0 !important; margin: 0 !important;
    background: #f0f0f0 !important; background-image: none !important;
    cursor: pointer; outline: none !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important;
    transition: border-color 0.15s, opacity 0.15s;
    opacity: 0.65;
}
.dc-detail .dc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Active thumb: just full opacity + subtle neutral border, no gold, no pink */
.dc-detail .dc-gallery__thumb.active {
    border-color: #999 !important;
    opacity: 1;
}
.dc-detail .dc-gallery__thumb:hover { opacity: 1; }

/* Sidebar */
.dc-detail__sidebar { position: sticky; top: 20px; }
.dc-detail__card {
    background: #fff; border-radius: var(--dc-radius);
    padding: 16px; box-shadow: 0 2px 14px rgba(0,0,0,0.06); margin-bottom: 12px;
}
.dc-detail__card--actions .dc-btn--primary { margin-bottom: 8px; }
.dc-detail__contact-row { display: flex; gap: 7px; }
.dc-detail__contact-row .dc-btn--outline,
.dc-detail__contact-row .dc-btn--wa { flex: 1 !important; height: 44px !important; padding: 0 !important; }

.dc-detail__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dc-detail__sidebar-title { font-size: 15px; font-weight: 600; color: var(--dc-text); margin: 0; line-height: 1.3; }

.dc-detail__share {
    width: 32px !important; height: 32px !important;
    border: 1px solid var(--dc-border) !important; border-radius: 7px !important;
    background: #fff !important; background-image: none !important;
    cursor: pointer !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; outline: none !important; box-shadow: none !important; flex-shrink: 0;
}
.dc-detail__share svg { stroke: #888; }

.dc-detail__meta-line { font-size: 11px; color: #bbb; margin: 0 0 10px; }
.dc-detail__specs { display: flex; flex-wrap: wrap; gap: 5px; }
.dc-detail__sub-title { font-size: 12px; font-weight: 600; color: var(--dc-text); margin: 0 0 8px; }

.dc-detail__features ul, .dc-detail__offers ul {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px;
}
.dc-detail__features li, .dc-detail__offers li {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 13px; font-weight: 400; color: #444; line-height: 1.4;
    list-style: none; padding: 0; margin: 0;
}
.dc-detail__features li::before, .dc-detail__offers li::before { content: none; display: none; }
.dc-detail__features li svg { stroke: #bbb; flex-shrink: 0; margin-top: 1px; }

.dc-detail__offers { margin-top: 4px; }
.dc-detail__offers-label {
    display: inline-block; background: #0b2746; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 5px 20px 5px 10px; border-radius: 4px 0 0 4px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    margin-bottom: -1px;
}
.dc-detail__offers-body {
    border: 1.5px dashed #0b2746; border-radius: 0 8px 8px 8px;
    padding: 12px; background: #e5f0fe;
}
.dc-detail__offers li svg { stroke: #0b2746; flex-shrink: 0; margin-top: 1px; }

.dc-detail__amenities-sidebar { margin-top: 0; }
.dc-detail__amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc-detail__amenity {
    display: flex; flex-direction: column; align-items: center;
    gap: 5px; padding: 10px 6px; background: #f7f7f7; border-radius: 10px;
    font-size: 11px; font-weight: 400; color: #555; text-align: center;
}
.dc-detail__amenity img { width: 24px; height: 24px; object-fit: contain; }
.dc-detail__amenity-placeholder { width: 24px; height: 24px; background: #ddd; border-radius: 50%; }

/* ═══════════════════════════════════════════════
   MAP + NEIGHBOURHOOD (v17 — reference layout)
   Hardened with !important — theme/Elementor bleeds
═══════════════════════════════════════════════ */
.dc-detail .dc-detail__map-section {
    display: grid !important;
    grid-template-columns: 38% 62% !important;
    min-height: 520px !important;
    margin-top: 40px !important;
    border-radius: var(--dc-radius) !important;
    overflow: hidden !important;
    background: #e8ebf5 !important;
}

.dc-detail .dc-detail__map-left {
    background: #e8ebf5 !important;
    padding: 52px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.dc-detail .dc-detail__map-title {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 46px !important;
    font-weight: 300 !important;
    line-height: 1.08 !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    margin: 0 0 40px !important;
    font-style: normal !important;
    letter-spacing: -0.01em !important;
}

.dc-detail .dc-detail__map-facilities-label {
    font-size: 19px !important;
    font-weight: 300 !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    margin: 0 0 20px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* 2-column checkbox grid matching reference */
.dc-detail .dc-map-checks {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dc-detail .dc-map-check {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 17px !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    user-select: none !important;
    margin: 0 !important;
}

.dc-detail .dc-map-check input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    accent-color: var(--dc-accent) !important;
    cursor: pointer !important;
    margin: 0 !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    opacity: 1 !important;
    position: static !important;
}

.dc-detail .dc-detail__map {
    width: 100% !important;
    height: 100% !important;
    min-height: 520px !important;
    z-index: 0 !important;
    border: none !important;
}

/* Leaflet internals must keep border-box off for tiles */
.dc-detail__map .leaflet-container * { box-sizing: content-box; }

/* Custom black teardrop marker */
.dc-map-pin { background: transparent !important; border: none !important; }
.dc-map-pin svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }

/* ═══════════════════════════════════════════════
   RELATED UNITS (v17)
═══════════════════════════════════════════════ */
.dc-detail__related { margin-top: 40px; }
.dc-detail__related-title { font-size: 24px; font-weight: 300; font-style: normal; color: var(--dc-text); margin: 0 0 18px; }
.dc-grid--related {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* ═══════════════════════════════════════════════
   SHARE TOAST (v17)
═══════════════════════════════════════════════ */
.dc-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
    background: #1a1a1a; color: #fff; font-size: 14px; font-weight: 500;
    padding: 11px 20px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    z-index: 99999; opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.dc-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.dc-toast[hidden] { display: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1100px) {
    .dc-listing .dc-grid,
    .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .dc-detail__layout { grid-template-columns: 1fr 300px; gap: 24px; }
    .dc-filter-row { grid-template-columns: 1fr 1fr; }
    .dc-filter-col--wide { grid-column: 1 / -1; }
    .dc-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Small tablet */
@media (max-width: 860px) {
    .dc-topbar { flex-wrap: wrap; padding: 10px; gap: 6px; }
    .dc-topbar__group { flex: 1 1 calc(50% - 6px); border-right: none; border-bottom: 1px solid var(--dc-border); }
    .dc-topbar__group:nth-last-child(2) { border-bottom: none; }
    .dc-topbar__panel { position: static; box-shadow: none; border: 1px solid #eee; border-radius: 9px; margin-top: 4px; }
    .dc-topbar__search { flex: 1 1 100% !important; margin-left: 0 !important; border-radius: 9px !important; height: 44px !important; }
    .dc-detail__layout { grid-template-columns: 1fr; }
    .dc-detail__sidebar { position: static; }
    .dc-detail__amenities { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
    .dc-listing, .dc-detail { font-size: 14px; }
    .dc-listing .dc-grid,
    .dc-grid { grid-template-columns: 1fr !important; }

    /* #17 — Communities + Bedrooms/Size as 2 columns on one line */
    .dc-topbar__group {
        flex: 1 1 calc(50% - 3px) !important;
        border-bottom: none !important;
        border-right: 1px solid var(--dc-border);
    }
    .dc-topbar__group:nth-child(2) { border-right: none; }
    .dc-topbar__label { font-size: 14px !important; }
    .dc-topbar__btn { padding: 8px 12px !important; }
    .dc-topbar__search { flex: 1 1 100% !important; font-size: 15px !important; }

    .dc-filter-row { grid-template-columns: 1fr; gap: 16px; }
    .dc-filter-panel__inner { padding: 16px; }

    /* #18 — bottom spacing so content doesn't hug footer */
    .dc-listing { padding-bottom: 40px; }
    .dc-detail { padding: 14px 14px 56px; }

    /* #19 — larger detail title for hierarchy */
    .dc-detail__title { font-size: 25px; }
    .dc-detail__gallery-title { font-size: 24px; }
    .dc-detail__amenities { grid-template-columns: repeat(3, 1fr); }
    .dc-drawer__panel { width: 100vw !important; }

    /* #20 — gallery arrows always visible on mobile, 44x44 touch target */
    .dc-gallery__nav {
        opacity: 1 !important;
        width: 44px !important; height: 44px !important;
    }
    .dc-gallery__nav--prev { left: 8px; }
    .dc-gallery__nav--next { right: 8px; }

    /* #21 — smaller gallery thumbnails with scroll snap */
    .dc-gallery__thumbs { gap: 5px; scroll-snap-type: x mandatory; }
    .dc-gallery__thumb { width: 60px; height: 44px; scroll-snap-align: start; }

    /* Related + map on mobile */
    .dc-grid--related { grid-template-columns: 1fr !important; }
    .dc-detail__map-section { grid-template-columns: 1fr; }
    .dc-detail__map-left { padding: 32px 20px; }
    .dc-detail__map-title { font-size: 28px; }
    .dc-detail__map { min-height: 340px; }
    .dc-detail__related-title { font-size: 21px; }
}

/* Small mobile */
@media (max-width: 420px) {
    .dc-card__body { padding: 10px 12px 12px; gap: 5px; }
    .dc-detail { padding: 10px 10px 48px; }
    .dc-detail__amenities { grid-template-columns: repeat(2, 1fr); }
    .dc-spec-badge { font-size: 10px; padding: 3px 7px; }
    .dc-filter-actions { flex-wrap: wrap; }
    .dc-btn--apply, .dc-btn--reset { flex: 1 !important; }
}
