.hc-floor-detail {
    --hc-floor-bg: #fefcf9;
    --hc-floor-text: #1f1911;
    --hc-floor-muted: #423a2e;
    --hc-floor-soft: #efebe5;
    --hc-floor-border: #e7e2da;
    --hc-floor-primary: #f6905c;
    --hc-floor-primary-soft: rgba(246, 144, 92, 0.6);
    --hc-floor-sold: #e81212;
    --hc-floor-available: #38a038;
    position: relative;
    width: 100%;
    padding: 0 0 80px;
    background: var(--hc-floor-bg);
    color: var(--hc-floor-text);
    font-family: Onest, Arial, sans-serif;
}

.hc-floor-detail * {
    box-sizing: border-box;
}

.hc-floor-detail__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px 24px;
}

.hc-floor-detail__intro {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hc-floor-detail__title {
    margin: 0;
    color: var(--hc-floor-text);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: 0;
}

.hc-floor-detail__description {
    margin: 0;
    color: var(--hc-floor-muted);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0;
}

.hc-floor-detail__view-tabs {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 10px 5px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(136, 100, 82, 0.12);
}

.hc-floor-detail__floor-nav {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(136, 100, 82, 0.12);
}

.hc-floor-detail__view-tab {
    display: inline-flex;
    flex: 1 1 0;
    height: 40px;
    min-height: 40px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hc-floor-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.hc-floor-detail__view-tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-floor-detail__view-tab i {
    font-size: 1.25rem;
    line-height: 1;
}

.hc-floor-detail__view-tab.is-active {
    background: var(--hc-floor-primary);
    color: #fff;
}

.hc-floor-detail__floor-link {
    display: inline-flex;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hc-floor-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.hc-floor-detail__floor-link.is-active {
    background: var(--hc-floor-muted);
    color: #fff;
}

.hc-floor-detail__floor-link.is-disabled {
    color: #bfb7ac;
    pointer-events: none;
}

.hc-floor-detail__mobile-nav {
    position: sticky;
    top: 72px;
    z-index: 900;
    padding: 0 12px 24px;
}

.hc-floor-detail__desktop-nav {
    display: none;
}

.hc-floor-detail__floor-nav {
    width: 100%;
    flex-direction: column;
}

.hc-floor-detail__floor-nav-title {
    padding: 0 4px 2px;
    color: #7b6f5e;
    font-size: 0.75rem;
    line-height: 1rem;
}

.hc-floor-detail__floor-list {
    display: flex;
    flex-direction: row-reverse;
    overflow-x: auto;
    scrollbar-width: none;
}

.hc-floor-detail__floor-list::-webkit-scrollbar {
    display: none;
}

.hc-floor-detail__panel {
    display: none;
}

.hc-floor-detail__panel.is-active {
    display: block;
}

.hc-floor-detail__panel[data-hc-floor-panel="floor"] {
    overflow-x: hidden;
}

.hc-floor-detail__legend {
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hc-floor-detail__legend--mobile {
    display: flex;
    padding: 0 12px 20px;
}

.hc-floor-detail__legend--desktop {
    display: none;
}

.hc-floor-detail__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1rem;
}

.hc-floor-detail__legend-swatch {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: var(--hc-floor-primary-soft);
}

.hc-floor-detail__legend-item[data-status="SOLD"] .hc-floor-detail__legend-swatch {
    background: var(--hc-floor-sold);
}

.hc-floor-detail__legend-item[data-status="AVAILABLE"] .hc-floor-detail__legend-swatch {
    background: var(--hc-floor-available);
}

.hc-floor-detail__plan-viewport {
    --hc-floor-mobile-plan-length: min(600px, 160vw);
    position: relative;
    width: 100%;
    height: calc(var(--hc-floor-mobile-plan-length) + 16px);
    margin: 24px 0 60px;
    overflow: hidden;
}

.hc-floor-detail__plan-card {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hc-floor-mobile-plan-length);
    height: min(350px, calc(100vw - 40px));
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 0 0 8px rgba(243, 240, 236, 1);
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
}

.hc-floor-detail__svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 40px;
}

.hc-floor-detail__apartment-zone path {
    pointer-events: all;
    transition: fill 180ms ease;
}

.hc-floor-detail__apartment-zone[data-status="AVAILABLE"]:hover path {
    fill: var(--hc-floor-available);
}

.hc-floor-detail__apartment-zone[data-status="SOLD"]:hover path {
    fill: var(--hc-floor-sold);
}

.hc-floor-detail__apartment-zone[data-status="RESERVED"]:hover path {
    fill: var(--hc-floor-primary);
}

.hc-floor-detail__apartment-zone[data-status="UNAVAILABLE"]:hover path {
    fill: #84889a;
}

.hc-floor-detail__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 80px 12px 0;
}

.hc-floor-detail__contact h2 {
    max-width: 960px;
    margin: 0;
    color: var(--hc-floor-text);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2rem;
    letter-spacing: 0;
    white-space: pre-line;
}

.hc-floor-detail__contact a {
    color: var(--hc-floor-primary);
    text-decoration: none;
}

.hc-floor-detail__contact--apartments {
    display: none;
}

.hc-floor-detail__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 12px 70px;
}

.hc-floor-apartment-card {
    display: flex;
    min-height: 148px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--hc-floor-border);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.hc-floor-apartment-card:hover {
    box-shadow: 0 16px 40px rgba(110, 98, 81, 0.16);
    transform: translateY(-1px);
}

.hc-floor-apartment-card__media {
    display: flex;
    width: 128px;
    flex: 0 0 128px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
}

.hc-floor-apartment-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hc-floor-apartment-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.hc-floor-apartment-card__title {
    color: var(--hc-floor-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.75rem;
}

.hc-floor-apartment-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #7b6f5e;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hc-floor-apartment-card__status {
    width: fit-content;
    margin-top: auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(132, 136, 154, 0.12);
    color: #84889a;
    font-size: 0.75rem;
    line-height: 1rem;
}

.hc-floor-apartment-card__status[data-status="AVAILABLE"] {
    background: rgba(56, 160, 56, 0.12);
    color: var(--hc-floor-available);
}

.hc-floor-apartment-card__status[data-status="SOLD"] {
    background: rgba(232, 18, 18, 0.12);
    color: var(--hc-floor-sold);
}

.hc-floor-apartment-card__status[data-status="RESERVED"] {
    background: rgba(255, 85, 0, 0.12);
    color: var(--hc-floor-primary);
}

.hc-floor-detail__empty,
.hc-floor-detail__not-found {
    margin: 24px 12px 80px;
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    color: var(--hc-floor-muted);
    text-align: center;
    box-shadow: 0 0 0 1px var(--hc-floor-border);
}

@media (min-width: 768px) {
    .hc-floor-detail {
        padding: 0 0 80px;
    }

    .hc-floor-detail__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 0 120px 80px;
    }

    .hc-floor-detail__intro {
        gap: 16px;
    }

    .hc-floor-detail__title {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .hc-floor-detail__view-tabs {
        width: fit-content;
        justify-content: flex-start;
        gap: 8px;
        padding: 8px;
        background: var(--hc-floor-soft);
        box-shadow: none;
    }

    .hc-floor-detail__view-tab {
        flex: 0 0 auto;
    }

    .hc-floor-detail__mobile-nav {
        display: none;
    }

    .hc-floor-detail__desktop-nav {
        position: fixed;
        top: 80px;
        left: 36px;
        z-index: 850;
        display: block;
    }

    .hc-floor-detail__desktop-nav .hc-floor-detail__floor-nav {
        width: auto;
        align-items: center;
    }

    .hc-floor-detail__desktop-nav .hc-floor-detail__floor-list {
        max-height: 540px;
        flex-direction: column-reverse;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .hc-floor-detail__desktop-nav .hc-floor-detail__floor-link {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .hc-floor-detail__legend--mobile {
        display: none;
    }

    .hc-floor-detail__legend--desktop {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 24px 24px 0;
    }

    .hc-floor-detail__plan-viewport {
        height: auto;
        margin: 0;
        overflow: visible;
    }

    .hc-floor-detail__plan-card {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 240px);
        max-width: 1136px;
        height: 636px;
        margin: 20px auto 0;
        flex-direction: column;
        transform: none;
    }

    .hc-floor-detail__svg {
        height: 100%;
    }

    .hc-floor-detail__contact {
        padding: 160px 120px 0;
    }

    .hc-floor-detail__contact h2 {
        width: 80%;
        font-size: 3rem;
        line-height: 3.5rem;
        white-space: normal;
    }

    .hc-floor-detail__contact--apartments {
        display: flex;
        padding: 80px 120px 80px;
    }

    .hc-floor-detail__cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding: 10px 120px 80px;
    }

    .hc-floor-apartment-card {
        min-height: 0;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .hc-floor-apartment-card__media {
        width: 100%;
        height: 260px;
        flex-basis: auto;
        padding: 0;
    }

    .hc-floor-apartment-card__media img {
        height: 260px;
    }

    .hc-floor-apartment-card__body {
        padding: 0;
    }
}
