
/* MASTER — FLOOR SELECTOR */

.master-floor-selector {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.master-floor-selector .master-map-column {
  flex: 7 1 0;
  min-width: 0;
}

.master-floor-selector .master-preview-column {
  flex: 3 1 0;
  min-width: 0;
}

.master-floor-card {
  background: #242321;
  color: #fff;
  border: 1px solid rgba(210,166,93,.22);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.10);
}

.master-floor-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #D2A65D;
}

.master-floor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.master-floor-kicker {
  color: #B7B1A8;
  font-size: 12px;
  letter-spacing: 1px;
}

.master-floor-heading h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 8px 0 0;
  font-weight: 600;
}

.master-floor-icon {
  color: #D2A65D;
  font-size: 34px;
}

.master-floor-image {
  background: #F5F3EF;
  border-radius: 12px;
  min-height: 180px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.master-floor-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.master-floor-image img[hidden],
.master-floor-button[hidden],
#master-floor-placeholder[hidden] {
  display: none !important;
}

#master-floor-placeholder {
  color: #777;
  padding: 20px;
  font-size: 14px;
  text-align: center;
}

.master-floor-description {
  font-size: 15px;
  color: #DDD8D0;
  line-height: 1.6;
}

.master-floor-button {
  margin-top: auto;
  background: #D2A65D;
  color: #242321 !important;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none !important;
  font-weight: 600;
  transition: background .2s ease;
}

.master-floor-button:hover {
  background: #E7BE78;
  color: #242321 !important;
}

.master-floor-hint {
  color: #A9A39B;
  font-size: 12px;
  text-align: center;
}

/* TABLET / MOBILE */

@media (max-width: 1024px) {
  .master-floor-selector {
    flex-direction: column;
    gap: 16px;
  }

  .master-floor-selector .master-map-column,
  .master-floor-selector .master-preview-column {
    flex: none;
    width: 100%;
  }

  .master-floor-card {
    padding: 22px;
    height: auto;
  }

  .master-floor-image {
    min-height: 150px;
  }
}

/* MASTER — MATCH BUILDING AND PANEL HEIGHT */

.master-floor-selector {
    align-items: stretch;
}

/* Left mapping column */
.master-floor-selector .master-map-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Image Map Pro wrapper */
.master-floor-selector .master-map-column .imp-container {
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
}

/* Round actual mapping image */
.master-floor-selector .master-map-column .imp-image {
    border-radius: 18px;
}

/* Right panel */
.master-floor-selector .master-preview-column {
    display: flex;
    flex-direction: column;
}

.master-floor-selector .master-floor-card {
    border-radius: 18px;
    height: 100%;
}

/* MASTER — Equal height layout */

.master-floor-selector {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.master-map-column,
.master-preview-column {
    min-width: 0;
}

.master-map-column .imp-container {
    border-radius: 18px;
    overflow: hidden;
}

.master-preview-column .master-floor-card {
    box-sizing: border-box;
    overflow: hidden;
}
/* MASTER — FINAL HEIGHT ALIGNMENT */

.master-floor-selector > .master-map-column,
.master-floor-selector > .master-preview-column {
    padding: 0 !important;
}

/* Keep both columns aligned */
.master-floor-selector {
    align-items: stretch !important;
}

/* Map and panel */
.master-floor-selector .imp-container,
.master-floor-selector .master-floor-card {
    border-radius: 18px;
}
/* MASTER — Mapping section scroll offset */
.master-floor-selector {
    scroll-margin-top: 90px;
}
/* MASTER INZENERING — Equal map and panel height */

@media (min-width: 768px) {
    .master-floor-selector {
        align-items: flex-start !important;
    }

    .master-floor-card {
        height: var(--master-map-height, auto) !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        align-self: flex-start !important;
    }
}

/* ==========================================
   MASTER INZENERING — FLOOR INTRO PREMIUM
   ========================================== */

.master-floor-intro {
    max-width: 1600px;
    margin: 0 auto;
    padding: 26px 24px 20px;
    box-sizing: border-box;
}

.master-floor-intro-content {
    width: 100%;
}

/* Navigation */
.master-floor-intro-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

/* Back button */
.master-floor-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 19px;
    border: 1px solid #dedbd5;
    border-radius: 50px;
    background: #fff;
    color: #242827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.master-floor-back:hover {
    background: #222827;
    border-color: #222827;
    color: #fff;
    transform: translateX(-3px);
}

.master-floor-back:focus-visible {
    outline: 2px solid #d1a35c;
    outline-offset: 3px;
}

/* Breadcrumb */
.master-floor-breadcrumb {
    color: #b38a4b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Main title */
.master-floor-intro-heading h1 {
    margin: 0 0 10px;
    color: #222827;
    font-size: clamp(34px, 3vw, 50px);
    line-height: 1.12;
    letter-spacing: -1px;
    font-weight: 700;
}

.master-floor-intro-heading h1 span {
    color: #d1a35c;
}

/* Description */
.master-floor-intro-heading p {
    max-width: 740px;
    margin: 0;
    color: #747875;
    font-size: 15px;
    line-height: 1.65;
}

/* Interaction hint */
.master-floor-intro-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding: 9px 14px;
    background: #eeece7;
    border: 1px solid #e6e1d8;
    border-radius: 50px;
    color: #626663;
    font-size: 12px;
    line-height: 1.4;
}

.master-floor-intro-hint > span:first-child {
    color: #cda25c;
    font-size: 18px;
    line-height: 1;
}

/* Keep intro close to mapping */
.master-floor-intro + .master-floor-selector {
    margin-top: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .master-floor-intro {
        padding: 24px 20px 18px;
    }

    .master-floor-intro-nav {
        margin-bottom: 22px;
    }

    .master-floor-intro-heading h1 {
        font-size: clamp(32px, 4vw, 44px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .master-floor-intro {
        padding: 22px 16px 18px;
    }

    .master-floor-intro-nav {
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 22px;
    }

    .master-floor-back {
        padding: 10px 15px;
        font-size: 12px;
    }

    .master-floor-breadcrumb {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .master-floor-intro-heading h1 {
        font-size: 34px;
        letter-spacing: -.5px;
    }

    .master-floor-intro-heading p {
        font-size: 14px;
        line-height: 1.6;
    }

    .master-floor-intro-hint {
        margin-top: 16px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .master-floor-back {
        transition: none;
    }
}

/* Objekt Kozarov mobile floor controls; desktop layout remains unchanged. */
.page-id-9160 .master-mobile-floor-nav {
    display: none;
}

@media (max-width: 1024px) {
    .page-id-9160 .elementor-9160 > .master-floor-intro,
    .page-id-9160 .elementor-9160 > .master-floor-selector {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .page-id-9160 .elementor-9160 .master-floor-selector {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .page-id-9160 .elementor-9160 .master-map-column,
    .page-id-9160 .elementor-9160 .master-preview-column {
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .page-id-9160 .master-floor-intro > .e-con,
    .page-id-9160 .master-floor-intro .elementor-widget-html,
    .page-id-9160 .master-floor-intro-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .page-id-9160,
    .page-id-9160 #content,
    .page-id-9160 .elementor-9160 {
        max-width: 100%;
        overflow-x: clip;
    }

    .page-id-9160 .elementor-9160 .master-floor-selector {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-id-9160 .elementor-9160 .master-map-column,
    .page-id-9160 .elementor-9160 .master-preview-column {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .page-id-9160 .master-map-column .elementor-widget-shortcode,
    .page-id-9160 .master-map-column .elementor-shortcode,
    .page-id-9160 .master-map-column .elementor-shortcode > div,
    .page-id-9160 .master-map-column .imp-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .page-id-9160 .master-map-column .imp-container {
        height: auto;
        overflow: hidden;
        border-radius: 14px;
    }

    .page-id-9160 .master-map-column .imp-image {
        max-width: 100%;
        border-radius: 14px;
    }

    .page-id-9160 .master-mobile-floor-nav,
    body.page-id-9287 .master-mobile-floor-carousel {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        font-family: 'Montserrat', sans-serif;
    }

    .page-id-9160 .master-mobile-floor-nav::-webkit-scrollbar,
    body.page-id-9287 .master-mobile-floor-carousel::-webkit-scrollbar {
        display: none;
    }

    .page-id-9160 .master-mobile-floor-button,
    body.page-id-9287 .master-mobile-floor-button {
        display: inline-flex;
        flex: 0 0 86.5px;
        align-items: center;
        justify-content: center;
        width: 86.5px;
        min-width: 86.5px;
        max-width: 86.5px;
        height: 46px;
        min-height: 46px;
        padding: 8px 4px;
        box-sizing: border-box;
        border: 1px solid #e5e1d9;
        border-radius: 8px;
        background: #f3f2ef;
        color: #242321;
        font: 600 12px/1.2 'Montserrat', sans-serif;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .page-id-9160 .master-mobile-floor-button.is-active,
    body.page-id-9287 .master-mobile-floor-button.is-active {
        border-color: #e4b66c;
        background: #e4b66c;
        color: #242321;
    }

    .page-id-9160 .master-mobile-floor-button:disabled,
    body.page-id-9287 .master-mobile-floor-button:disabled {
        opacity: .48;
        cursor: not-allowed;
    }

    .page-id-9160 .master-mobile-floor-button:focus-visible,
    body.page-id-9287 .master-mobile-floor-button:focus-visible {
        outline: 2px solid #242321;
        outline-offset: 2px;
    }

    .page-id-9160 .master-preview-column .master-floor-card,
    .page-id-9160 #master-floor-preview {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: 20px;
        border-radius: 14px;
        box-sizing: border-box;
        gap: 16px;
        overflow: visible;
    }

    .page-id-9160 #master-floor-title {
        font-size: 27px !important;
    }

    .page-id-9160 #master-floor-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .page-id-9160 .master-floor-image {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        background: #fff;
    }

    .page-id-9160 .master-floor-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .page-id-9160 #master-floor-link {
        justify-content: center;
        min-height: 48px;
        box-sizing: border-box;
        padding: 13px 16px;
        border-radius: 8px;
        background: #e4b66c;
        color: #242321 !important;
        font-size: 14px;
    }
}

/* MASTER — Modern Montserrat typography */
.master-floor-intro,
.master-floor-card {
    font-family: 'Montserrat', sans-serif !important;
}

/* Main heading — smaller, no capitalization */
.master-floor-intro .master-floor-intro-heading h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(28px, 2.5vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -1.2px !important;
    text-transform: none !important;
    font-style: normal !important;
}

/* Description */
.master-floor-intro .master-floor-intro-heading p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* Right panel floor title */
.master-floor-card #master-floor-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(25px, 2vw, 32px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.8px !important;
    text-transform: none !important;
    font-style: normal !important;
}

/* Right panel description */
.master-floor-card #master-floor-description {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* All other panel text */
.master-floor-card a,
.master-floor-card button,
.master-floor-card p,
.master-floor-card span {
    font-family: 'Montserrat', sans-serif !important;
}

/* MASTER — Interactive floor instruction */

.master-floor-intro-hint {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 7px 16px 7px 8px;
    border: 1px solid #e8e2d8;
    border-radius: 50px;
    background: #f0eee9;
    color: #5f6461;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: background .25s ease, border-color .25s ease;
}

.master-floor-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #d1a55d;
    color: #242827 !important;
    transition: transform .25s ease;
}

.master-floor-hint-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    stroke: currentColor;
}

.master-floor-intro-hint:hover {
    background: #eae5dc;
    border-color: #d1a55d;
}

.master-floor-intro-hint:hover .master-floor-hint-icon {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .master-floor-intro-hint,
    .master-floor-hint-icon {
        transition: none;
    }
}
/* MASTER — Persistent selected floor */

.master-floor-selector .imp-object-poly.master-floor-selected {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.master-floor-selector .imp-object-poly.master-floor-selected path,
.master-floor-selector .imp-object-poly.master-floor-selected polygon {
   fill: rgba(228, 182, 108, 0.564) !important;
    fill-opacity: 1 !important;

    stroke: #ffe0a3 !important;
    stroke-opacity: 1 !important;
    stroke-width: 3px !important;

    opacity: 1 !important;
    vector-effect: non-scaling-stroke;
}

/* MASTER — Apartment Selector Step 2 */

.master-apartment-selector {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    box-sizing: border-box;
}

.master-apartment-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.master-apartment-sidebar {
    flex: 0 0 calc((100% - 24px) * .28);
    width: auto;
    min-width: 0;
    background: #252321;
    border: 1px solid #705b3e;
    border-radius: 20px;
    overflow: hidden;
}

.master-apartment-main {
    flex: 0 0 calc((100% - 24px) * .72);
    width: auto;
    min-width: 0;
    background: #f8f7f5;
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
}

.master-apartment-map {
    width: 100%;
    min-width: 0;
    position: relative;
}

.master-apartment-map .imp-container {
    max-width: 100%;
}

.master-apartment-preview {
    width: 100%;
    border: 1px solid #dedbd5;
    border-radius: 16px;
    padding: 16px;
    background: #f3f1ee;
}

/* Tablet and mobile */

@media (max-width: 1024px) {
    .master-apartment-layout {
        flex-direction: column;
        gap: 20px;
    }

    .master-apartment-sidebar,
    .master-apartment-main {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .master-apartment-selector {
        padding: 24px 16px 48px;
    }

    .master-apartment-main {
        padding: 16px;
    }

    .master-apartment-preview {
        flex-direction: column;
    }
}

/* MASTER — Apartment toolbar */

.master-apartment-toolbar {
    width: 100%;
}

.master-apartment-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.master-apartment-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #b38a4b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.master-apartment-toolbar-title h2 {
    margin: 0 0 5px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 28px !important;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none !important;
    color: #252523;
}

.master-apartment-toolbar-title p {
    margin: 0;
    font-size: 13px;
    color: #77736d;
}

.master-apartment-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.master-apartment-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    color: #55534f;
    white-space: nowrap;
}

.master-apartment-legend i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.master-apartment-toolbar .master-apartment-compass {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 79.2px;
    margin-left: 20px;
}

.master-apartment-toolbar .master-apartment-compass svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.master-apartment-toolbar .master-apartment-compass text {
    fill: #202B29;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.master-apartment-toolbar .master-apartment-compass circle {
    fill: none;
    stroke: #D9B675;
}

.status-available { background: var(--master-status-available-polygon, #858580); }
.status-reserved { background: var(--master-status-reserved-polygon, #858580); }
.status-sold { background: var(--master-status-sold-polygon, #858580); }

@media (max-width: 767px) {
    .master-apartment-toolbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .master-apartment-toolbar-title h2 {
        font-size: 24px !important;
    }

    .master-apartment-legend {
        gap: 12px;
    }

    .master-apartment-toolbar .master-apartment-compass {
        width: 52px;
        height: 57.2px;
        margin: 0 0 0 auto;
    }
}

/* MASTER — Apartment Floor Sidebar */

.master-apartment-sidebar {
    background: #252321;
    border: 1px solid #705b3e;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.master-sidebar-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.master-sidebar-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #35312b;
}

.master-sidebar-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.master-sidebar-image-label {
    position: absolute;
    left: 18px;
    bottom: 16px;
    padding: 7px 11px;
    border-radius: 5px;
    background: rgba(20, 20, 20, .75);
    color: #e4bd7e;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.master-sidebar-heading {
    padding: 25px 24px 18px;
}

.master-sidebar-eyebrow {
    display: block;
    color: #d1a55d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
}

.master-sidebar-heading h3 {
    margin: 0 0 8px;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 23px !important;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none !important;
    color: #fff !important;
}

.master-sidebar-heading p {
    margin: 0;
    color: #aaa49c;
    font-size: 12px;
    line-height: 1.6;
}

.master-sidebar-floors {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px 16px 24px;
}

.master-sidebar-floor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    color: #f4f1eb;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.master-sidebar-floor-name {
    font-size: 13px;
    font-weight: 600;
}

.master-sidebar-floor-note {
    font-size: 10px;
    color: #938d84;
}

.master-sidebar-floor-arrow {
    font-size: 20px;
    font-weight: 400;
}

.master-sidebar-floor:not(:disabled):hover {
    background: rgba(209,165,93,.14);
    border-color: #d1a55d;
}

.master-sidebar-floor.is-active,
.master-sidebar-floor.is-active:hover {
    background: #d1a55d;
    border-color: #d1a55d;
    color: #252321;
}

.master-sidebar-floor:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.master-sidebar-footer {
    margin-top: auto;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.master-sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d1a55d;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.master-sidebar-back:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .master-sidebar-image {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .master-sidebar-image {
        height: 160px;
    }

    .master-sidebar-heading {
        padding: 20px 18px 12px;
    }

    .master-sidebar-floors {
        padding: 8px 12px 18px;
    }

    .master-sidebar-floor {
        min-height: 46px;
    }

    .master-sidebar-footer {
        padding: 16px 18px 20px;
    }
}

/* MASTER — Compact sidebar refinement */

/* Sidebar / main proportions */
.master-apartment-layout {
    gap: 20px !important;
    align-items: flex-start;
}

.master-apartment-sidebar {
    flex: 0 0 calc((100% - 20px) * .23) !important;
    width: calc((100% - 20px) * .23) !important;
    min-width: 0;
    padding: 0 !important;
    border-radius: 16px;
}

.master-apartment-main {
    flex: 0 0 calc((100% - 20px) * .77) !important;
    width: calc((100% - 20px) * .77) !important;
    min-width: 0;
}

/* Ensure Elementor HTML widget uses full width */
.master-apartment-sidebar .elementor-widget-html,
.master-apartment-sidebar .elementor-widget-container,
.master-sidebar-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

/* Compact heading */
.master-sidebar-heading {
    padding: 24px 18px 14px;
}

.master-sidebar-heading h3 {
    font-size: 21px !important;
}

.master-sidebar-heading p {
    font-size: 11px;
}

/* Full-width floor buttons */
.master-sidebar-floors {
    width: 100%;
    padding: 4px 12px 18px;
    gap: 6px;
    box-sizing: border-box;
}

.master-sidebar-floor {
    width: 100% !important;
    min-height: 46px;
    padding: 10px 13px;
    box-sizing: border-box;
}

.master-sidebar-floor-name {
    font-size: 12px;
}

.master-sidebar-floor-note {
    font-size: 10px;
}

/* Compact footer */
.master-sidebar-footer {
    padding: 16px 18px 20px;
}

@media (max-width: 1024px) {
    .master-apartment-sidebar,
    .master-apartment-main {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}
/* MASTER — Sidebar image top-edge fix */

.master-apartment-sidebar {
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.master-apartment-sidebar .master-floor-navigation {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
}

.master-apartment-sidebar .master-sidebar-content {
    padding: 0 !important;
    margin: 0 !important;
}

.master-apartment-sidebar .master-sidebar-image {
    display: block !important;
    height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.master-apartment-sidebar .master-sidebar-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* MASTER — Premium floor navigation */

.master-sidebar-floors-premium {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    padding: 0 12px 22px !important;
}

.master-sidebar-floors-premium .master-sidebar-floor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    min-height: 54px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    border-radius: 0;
    background: transparent;
    color: #f5f2ee;
    opacity: 1;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    box-shadow: none;
}

.master-sidebar-floors-premium .master-sidebar-floor:disabled {
    opacity: 1 !important;
    color: #f5f2ee;
    cursor: default;
}

.master-floor-left,
.master-floor-right {
    display: flex;
    align-items: center;
}

.master-floor-left {
    gap: 12px;
    min-width: 0;
}

.master-floor-icon {
    display: flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    color: currentColor;
}

.master-floor-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.master-sidebar-floors-premium .master-sidebar-floor-name {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
}

.master-floor-chevron {
    font-size: 25px;
    line-height: 1;
    color: inherit;
}

.master-sidebar-floors-premium .master-sidebar-floor.is-active,
.master-sidebar-floors-premium .master-sidebar-floor.is-active:hover {
    background: #d1a55d !important;
    color: #242321 !important;
    border-bottom-color: transparent;
    border-radius: 10px;
    font-weight: 700;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.master-sidebar-floors-premium .master-sidebar-floor.is-active
.master-sidebar-floor-name {
    font-weight: 700;
}

.master-sidebar-floors-premium .master-sidebar-floor:not(:disabled):not(.is-active):hover {
    background: rgba(209,165,93,.10);
    color: #e9c383;
}

/* No artificial faded appearance on inactive floors */
.master-sidebar-floors-premium .master-sidebar-floor:disabled:hover {
    background: transparent;
    border-color: rgba(255,255,255,.15);
}

/* Mobile */
@media (max-width: 767px) {
    .master-sidebar-floors-premium {
        padding: 0 12px 18px !important;
    }

    .master-sidebar-floors-premium .master-sidebar-floor {
        min-height: 48px;
    }
}

/* MASTER — Apartment selection preview */

.master-apartment-preview {
    width: 100%;
    min-height: 90px;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
}

.master-apartment-preview .elementor-widget-html,
.master-apartment-preview .elementor-widget-container {
    width: 100%;
}

.master-apartment-detail {
    width: 100%;
    background: #f8f7f5;
    border: 1px solid #e5e0d8;
    border-radius: 14px;
    padding: 18px 22px;
    font-family: 'Montserrat', sans-serif;
}

.master-apartment-detail [hidden] {
    display: none !important;
}

.master-apartment-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    color: #77736d;
    font-size: 12px;
    text-align: center;
}

.master-apartment-empty-icon {
    color: #d1a55d;
    font-size: 25px;
}

.master-apartment-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.master-apartment-selected-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.master-apartment-selected-label {
    color: #b78b48;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.master-apartment-selected-info h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 23px !important;
    font-weight: 700;
    color: #252321 !important;
    text-transform: none !important;
}

.master-apartment-status {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 30px;
    background: #ecebe8;
    color: #65635e;
    font-size: 11px;
    font-weight: 600;
}

.master-apartment-status[data-status="available"] {
    background: var(--master-status-available-badge-background, #ecebe8);
    color: var(--master-status-available-badge-text, #65635e);
}

.master-apartment-status[data-status="reserved"] {
    background: var(--master-status-reserved-badge-background, #ecebe8);
    color: var(--master-status-reserved-badge-text, #65635e);
}

.master-apartment-status[data-status="sold"] {
    background: var(--master-status-sold-badge-background, #ecebe8);
    color: var(--master-status-sold-badge-text, #65635e);
}

.master-apartment-status[data-status="unknown"],
.master-apartment-status[data-status="loading"] {
    background: #ecebe8;
    color: #65635e;
}

.master-apartment-selected-specs {
    display: flex;
    align-items: center;
    gap: 25px;
}

.master-apartment-spec {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 18px;
    border-left: 1px solid #e0dcd5;
}

.master-apartment-spec-label {
    color: #89847d;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .7px;
}

.master-apartment-spec strong {
    color: #252321;
    font-size: 17px;
}

.master-apartment-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    background: #d1a55d;
    border-radius: 10px;
    color: #252321;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.master-apartment-view:hover {
    background: #e2b973;
    color: #252321;
}

@media (max-width: 767px) {
    .master-apartment-detail {
        padding: 16px;
    }

    .master-apartment-selected {
        align-items: flex-start;
        flex-direction: column;
    }

    .master-apartment-selected-specs {
        width: 100%;
        gap: 12px;
        justify-content: space-between;
    }

    .master-apartment-spec {
        padding-left: 10px;
    }
}


/* Right architectural panel */
.master-apartment-main {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px !important;
  min-width: 0;
}

/* Apartment detail bar */
.master-apartment-preview {
  width: 100%;
  min-height: 0;
}

.master-apartment-detail {
  background: #f7f6f4;
  border: 1px solid #dedbd5;
  border-radius: 15px;
  padding: 13px 16px;
  width: 100%;
}

.master-apartment-detail [hidden] {
  display: none !important;
}

.master-apartment-selected {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.master-preview-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
}

.master-preview-thumbnail {
  width: 100px;
  height: 85px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #e9e4db;
  background-size: cover;
  background-position: center;
}

.master-preview-name h3 {
  margin: 5px 0 !important;
  color: #242321 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700;
}

.master-apartment-selected-specs {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: space-evenly;
}

.master-apartment-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border-left: 1px solid #dedbd5;
  text-align: center;
}

.master-spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #b88a42;
  line-height: 1;
}

.master-spec-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.master-apartment-spec strong {
  color: #242321;
  font-size: 16px;
  white-space: nowrap;
}

.master-apartment-spec-label {
  color: #77736d;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.master-map-floor-1 .master-apartment-map-label rect {
  fill: #26382e !important;
  fill-opacity: 0.82 !important;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
}

.master-apartment-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #d1a55d;
  color: #242321;
  padding: 15px 18px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.master-apartment-view:hover {
  background: #e4b66c;
  color: #242321;
}

/* SVG apartment labels */

/* TEMPORARY — test Image Map Pro initialization */
.master-floor-map-panel {
  display: flex !important;
  width: 100% !important;
}

.master-map-floor-1 .master-apartment-map-label {
  pointer-events: none;
}

.master-map-floor-1 .master-apartment-map-label rect {
  fill: rgba(38, 53, 42, .90);
  stroke: rgba(255,255,255,.9);
  stroke-width: 1.5;
}

.master-map-floor-1 .master-apartment-map-label text {
  fill: #ffffff;
  font-family: Montserrat, sans-serif;
  text-anchor: middle;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .master-apartment-selected-specs {
    flex-wrap: wrap;
    row-gap: 14px;
  }
}

@media (max-width: 767px) {
  .master-apartment-main {
    padding: 14px !important;
  }

  .master-apartment-selected {
    flex-direction: column;
    align-items: stretch;
  }

  .master-apartment-selected-specs {
    justify-content: space-between;
  }

  .master-apartment-spec {
    padding: 0 8px;
  }

  .master-apartment-view {
    width: 100%;
  }
}
.master-map-floor-1 .master-apartment-map-label rect {
  fill: #26382e !important;
  fill-opacity: 0.7 !important;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
}

.master-map-floor-1 .master-apartment-map-label text {
  fill: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  text-anchor: middle;
}
/* MASTER — Equal-width apartment specifications */

.master-apartment-selected-specs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: initial !important;
  gap: 0 !important;
  min-width: 0;
}

.master-apartment-selected-specs .master-apartment-spec {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
/* MASTER — Permanent floor plan spacing fix */

@media (min-width: 768px) {

  .master-apartment-map > :nth-child(1),
  .master-apartment-map > :nth-child(3),
  .master-apartment-map > :nth-child(4),
  .master-apartment-map > :nth-child(5),
  .master-apartment-map > :nth-child(6) {
    display: none !important;
  }



  .master-apartment-main {
    align-self: stretch !important;
    justify-content: flex-start !important;
  }
}
/* Compact sidebar heading */
.master-sidebar-heading {
  margin-bottom: 12px !important;
}

/* Reduce spacing before floor navigation */
.master-sidebar-floors {
  margin-top: 0 !important;
}

.master-preview-thumbnail {
  width: 100px;
  height: 85px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #e9e4db;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.master-preview-thumbnail.is-placeholder {
  background-color: #F6F4F0;
  background-size: 97px auto;
  background-position: center;
  background-repeat: no-repeat;
}
/* MASTER — Toolbar legend aligned to far right */

@media (min-width: 1025px) {

  .master-apartment-toolbar {
    width: 100% !important;
  }

  .master-apartment-toolbar .elementor-widget-html {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
  }

  .master-apartment-toolbar-inner {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 24px;
  }

  .master-apartment-legend {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px;
  }

}
.master-floor-back {
  transform: translateY(10px) !important;
}
/* MASTER — Final spacing above apartment selector */

/* Remove extra space below the back-button wrapper */
.master-floor-intro-nav {
  margin-bottom: 0 !important;
}

/* Remove unnecessary bottom padding */
.master-floor-intro {
  padding-bottom: 0 !important;
}

/* Center the back button visually */
.master-floor-back {
  transform: translateY(10px) !important;
}
.master-sidebar-floors-premium .master-sidebar-floor:last-child{
	border-bottom:none!important;
}

/* Single apartment page only */
.master-single-apartment-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Full-width header */
.master-single-apartment-layout > .master-apartment-header {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    align-self: stretch;
}

/* Full-width image + table section */
.master-single-apartment-layout > .master-apartment-content-row {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    align-self: stretch;
}


/* MASTER — Single apartment page only */

/* Main parent: vertical layout */
body .elementor .master-single-apartment-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
}

/* Header: full width */
body .elementor .master-single-apartment-layout
> .master-apartment-header {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

/* Image + table: full width, horizontal */
body .elementor .master-single-apartment-layout
> .master-apartment-content-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    gap: 20px;
}

/* Single apartment page 9487 only */


/* MASTER — Shared single apartment layout */
/* Reusable across all apartment pages */

.master-single-apartment-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    box-sizing: border-box;
}

/* Header and content row — full width */
.master-single-apartment-layout > .master-apartment-header,
.master-single-apartment-layout > .master-apartment-content-row {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
}

/* Image + table — horizontal */
.master-single-apartment-layout > .master-apartment-content-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Left image — rounded corners */
.master-single-apartment-layout
.master-apartment-content-row > .master-apartment-photo {
    border-radius: 14px;
    overflow: hidden;
}

/* Image */
.master-single-apartment-layout
.master-apartment-photo img {
    display: block;
    border-radius: 14px;
}

/* Mobile */
@media (max-width: 767px) {
    .master-single-apartment-layout > .master-apartment-content-row {
        flex-direction: column !important;
    }
}
/* Force Elementor 2D section to stack vertically */
.master-single-apartment-layout > .master-apartment-floorplan {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
}
/* Align visible 2D card with visible black header */
.master-single-apartment-layout
.master-apartment-floorplan > .e-con {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-inline: auto !important;
}
/* Spacing above the 2D white card */
.master-single-apartment-layout > .master-apartment-floorplan {
    margin-top: 10px;
}

.master-single-apartment-layout .master-floor-intro-nav {
    margin-top: -10px !important;
    margin-bottom: 6px !important;
}
.page-id-9160 .master-floor-intro-nav,.post-9287 .master-floor-intro-nav{
    margin-top: -10px !important;
    margin-bottom: 20px !important;
}
/* MASTER — 2D section typography */
.master-apartment-floorplan .master-plan-heading,
.master-apartment-floorplan .master-plan-heading * {
    font-family: 'Montserrat', sans-serif !important;
}

.master-apartment-floorplan .master-plan-heading h1,
.master-apartment-floorplan .master-plan-heading h2,
.master-apartment-floorplan .master-plan-heading h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.master-unit-header__title {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}
.master-room-title{
    font-family: 'Montserrat', sans-serif;
}
.master-apartment-floorplan .master-plan-heading,
.master-apartment-floorplan .master-plan-heading * {
    text-transform: none !important;
}
.master-room-list div:last-child{
border-bottom: none!important;
}

/* MASTER — Mobile apartment selector for page 9287 */
@media (max-width: 767px) {
  html.master-map-viewer-open,
  html.master-map-viewer-open body {
    overflow: hidden !important;
  }

  body.page-id-9287 {
    overflow-x: clip;
    background: #f7f7f6;
  }

  body.page-id-9287 .elementor-element-369b4db {
    display: none !important;
  }

  body.page-id-9287 .elementor-9287 {
    width: 100%;
    max-width: 100%;
    overflow: clip;
    background: #f7f7f6;
    color: #252421;
    font-family: 'Montserrat', sans-serif;
  }

  body.page-id-9287 .master-floor-intro {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px 12px !important;
    box-sizing: border-box;
    background: transparent;
  }

  body.page-id-9287 .master-floor-intro-content,
  body.page-id-9287 .master-floor-intro > .e-con {
    width: 100%;
    max-width: 100%;
  }

  body.page-id-9287 .master-floor-intro-nav {
    margin: 0 0 18px;
  }

  body.page-id-9287 .master-floor-back {
    color: #625e57;
    font-size: 12px;
    text-decoration: none;
  }

  body.page-id-9287 .master-mobile-intro {
    margin: 0 0 18px;
  }

  body.page-id-9287 .master-mobile-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #8a714d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
  }

  body.page-id-9287 .master-mobile-intro h1 {
    margin: 0 0 6px;
    color: #252421;
    font: 700 28px/1.18 'Montserrat', sans-serif;
    letter-spacing: -.04em;
    text-transform: none !important;
  }

  body.page-id-9287 .master-mobile-intro p {
    max-width: 36em;
    margin: 0;
    color: #77746e;
    font: 400 13px/1.55 'Montserrat', sans-serif;
  }

  body.page-id-9287 .master-mobile-floor-button:focus-visible,
  body.page-id-9287 .master-mobile-apartment-row:focus-visible,
  body.page-id-9287 .master-mobile-map-expand:focus-visible,
  body.page-id-9287 .master-mobile-viewer-close:focus-visible {
    outline: 2px solid #252421;
    outline-offset: 2px;
  }

  body.page-id-9287 .master-apartment-selector {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 14px 28px !important;
    box-sizing: border-box;
  }

  body.page-id-9287 .master-apartment-layout {
    display: contents !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-id-9287 .master-apartment-sidebar {
    display: none !important;
  }

  body.page-id-9287 .master-apartment-main {
    display: contents !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  body.page-id-9287 .master-mobile-map-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #e8e5df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(34, 31, 25, .035);
  }

  body.page-id-9287 .master-mobile-map-card > .master-apartment-toolbar {
    width: 100%;
    margin: 0;
    padding: 16px 16px 8px;
    box-sizing: border-box;
    background: #fff;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-inner,
  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-title {
    width: 100%;
    min-width: 0;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-inner .master-apartment-legend {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-compass {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    margin: 0;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-eyebrow {
    font-size: 9px;
    letter-spacing: .07em;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-title h2 {
    margin: 3px 40px 3px 0;
    color: #252421;
    font-size: 18px;
    line-height: 1.25;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-toolbar-title p {
    margin: 0;
    color: #858580;
    font-size: 11px;
    line-height: 1.4;
  }

  body.page-id-9287 .master-apartment-toolbar-title {
    position: relative;
  }

  body.page-id-9287 .master-mobile-map-expand {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid #e8e5df;
    border-radius: 9px;
    background: #fff;
    color: #38352f;
    cursor: pointer;
  }

  body.page-id-9287 .master-mobile-map-expand svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 8px 16px 12px;
    border-top: 1px solid #f0eeea;
    background: #fff;
  }

  body.page-id-9287 .master-mobile-map-card .master-apartment-legend span {
    font-size: 10px;
    color: #5d5a54;
  }

  body.page-id-9287 .master-mobile-map-card > .master-apartment-map {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 8px 10px;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
  }

  /* The floor switcher reuses the Cat 1 host and leaves these Elementor slots empty. */
  body.page-id-9287 .master-mobile-map-card .master-map-ground,
  body.page-id-9287 .master-mobile-map-card .master-map-floor-2,
  body.page-id-9287 .master-mobile-map-card .master-map-floor-3,
  body.page-id-9287 .master-mobile-map-card .master-map-floor-4,
  body.page-id-9287 .master-mobile-map-card .master-map-penthouse {
    display: none !important;
  }

  body.page-id-9287 .master-mobile-map-card .master-floor-map-panel,
  body.page-id-9287 .master-mobile-map-card .elementor-widget-shortcode,
  body.page-id-9287 .master-mobile-map-card .elementor-shortcode,
  body.page-id-9287 .master-mobile-map-card [id^="image-map-pro-"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto;
  }

  body.page-id-9287 .master-mobile-map-card svg {
    max-width: 100%;
  }

  body.page-id-9287 .master-apartment-preview {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px;
  }

  body.page-id-9287 .master-apartment-detail {
    width: 100%;
    min-height: 0;
    padding: 18px !important;
    border-radius: 14px;
    box-sizing: border-box;
    background: #F6F4F0;
    border-color: #DED8CE;
    color: #292823;
  }

  body.page-id-9287 .master-apartment-empty {
    color: #77736B;
    font-size: 13px;
    line-height: 1.55;
  }

  body.page-id-9287 .master-apartment-empty-icon,
  body.page-id-9287 .master-spec-icon {
    color: #A3824E;
  }

  body.page-id-9287 .master-apartment-selected-label {
    color: #292823;
  }

  body.page-id-9287 .master-apartment-selected-info h3,
  body.page-id-9287 .master-preview-name h3 {
    color: #292823 !important;
  }

  body.page-id-9287 .master-apartment-spec {
    border-color: #DED8CE;
  }

  body.page-id-9287 .master-apartment-spec-label {
    color: #77736B;
  }

  body.page-id-9287 .master-apartment-spec strong {
    color: #292823;
  }

  body.page-id-9287 .master-mobile-apartment-list {
    width: 100%;
    min-width: 0;
    padding: 0 2px;
    box-sizing: border-box;
  }

  body.page-id-9287 .master-mobile-apartment-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 7px;
  }

  body.page-id-9287 .master-mobile-apartment-list-title {
    margin: 0;
    color: #252421;
    font: 700 16px/1.3 'Montserrat', sans-serif;
    text-transform: none !important;
  }

  body.page-id-9287 .master-mobile-apartment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 13px;
    background: #eeeae3;
    color: #615b51;
    font-size: 11px;
    font-weight: 700;
  }

  body.page-id-9287 .master-mobile-apartment-rows {
    border-top: 1px solid #e8e5df;
  }

  body.page-id-9287 .master-mobile-apartment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    width: 100%;
    min-height: 58px;
    padding: 9px 8px;
    border: 0;
    border-bottom: 1px solid #e8e5df;
    border-radius: 0;
    background: transparent;
    color: #252421;
    text-align: left;
    cursor: pointer;
  }

  body.page-id-9287 .master-mobile-apartment-row.is-active {
    border-radius: 8px;
    background: #efe8dc;
  }

  body.page-id-9287 .master-mobile-apartment-name {
    font-size: 13px;
    font-weight: 650;
  }

  body.page-id-9287 .master-mobile-apartment-area {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    font-weight: 600;
  }

  body.page-id-9287 .master-mobile-apartment-status {
    grid-column: 1;
    color: #77746e;
    font-size: 10px;
  }

  body.page-id-9287 .master-mobile-apartment-status[data-status="available"] { color: var(--master-status-available-list-text, #858580); }
  body.page-id-9287 .master-mobile-apartment-status[data-status="reserved"] { color: var(--master-status-reserved-list-text, #858580); }
  body.page-id-9287 .master-mobile-apartment-status[data-status="sold"] { color: var(--master-status-sold-list-text, #858580); }
  body.page-id-9287 .master-mobile-apartment-status.is-unspecified { color: #858580; }

  body.page-id-9287 .master-mobile-apartment-indicator {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: 7px;
    height: 7px;
    border: 1px solid #bcb7ae;
    border-radius: 50%;
  }

  body.page-id-9287 .master-mobile-apartment-row.is-active .master-mobile-apartment-indicator {
    border-color: #b4853f;
    background: #d3a45b;
  }

  body.page-id-9287 .master-mobile-map-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 12px;
    border: 0;
    box-sizing: border-box;
    overflow: auto;
    background: #f7f7f6;
  }

  body.page-id-9287 .master-mobile-map-viewer::backdrop {
    background: #f7f7f6;
  }

  body.page-id-9287 .master-mobile-viewer-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    margin: -12px -12px 12px;
    padding: 0 14px;
    border-bottom: 1px solid #e8e5df;
    background: #f7f7f6;
    color: #252421;
    font-size: 13px;
    font-weight: 650;
  }

  body.page-id-9287 .master-mobile-viewer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eae7e1;
    color: #252421;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }

  body.page-id-9287 .master-mobile-viewer-actions {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  body.page-id-9287 .master-mobile-viewer-actions > button:not(.master-mobile-viewer-close) {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #dedad2;
    border-radius: 8px;
    background: #fff;
    color: #252421;
    font: 600 12px/1 'Montserrat', sans-serif;
    cursor: pointer;
  }

  body.page-id-9287 .master-mobile-viewer-content .master-mobile-map-card {
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  body.page-id-9287 .master-mobile-intro,
  body.page-id-9287 .master-mobile-floor-carousel,
  body.page-id-9287 .master-mobile-apartment-list,
  body.page-id-9287 .master-mobile-map-expand,
  body.page-id-9287 .master-mobile-map-viewer {
    display: none !important;
  }

  body.page-id-9287 .master-mobile-map-card {
    display: contents;
  }
}

/* WordPress already offsets the document below its mobile admin toolbar.
   Avoid adding that same offset to this page's header until it sticks. */
@media screen and (max-width: 782px) {
  html.has-visible-wpadminbar body.page-id-9287.ehf-header #masthead {
    top: 0;
  }

  html.has-visible-wpadminbar body.page-id-9287.ehf-header #masthead.is-scrolled {
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}
