:root {
    --hs-available-fill:   rgba(201,168,76,.25);
    --hs-available-stroke: rgba(201,168,76,.85);
    --hs-reserved-fill:    rgba(229,163,32,.25);
    --hs-reserved-stroke:  rgba(229,163,32,.85);
    --hs-sold-fill:        rgba(136,136,136,.2);
    --hs-sold-stroke:      rgba(136,136,136,.7);
    --hs-floor-fill:       rgba(255,255,255,.15);
    --hs-floor-stroke:     rgba(255,255,255,.6);
    --hs-tip-bg:           #0d0d0d;
    --hs-tip-color:        #ffffff;
    --hs-tip-accent:       #c9a84c;
    --hs-tip-width:        300px;
    --hs-tip-radius:       0px;
    --hs-stroke-width:     0.4;
}

body.hs-noscroll { overflow: hidden !important; }

/* Budynek */
.hs-building-wrap {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
}
.hs-building-img { width: 100%; height: auto; display: block; }
.hs-building-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
}
.hs-building-svg .hs-zone       { cursor: pointer; transition: fill .15s; }
.hs-building-svg .hs-zone--sold { cursor: default; }

/* Tooltip budynku */
.hs-building-tooltip {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 20;
    width: var(--hs-tip-width);
    background: var(--hs-tip-bg);
    color: var(--hs-tip-color);
    border: 1px solid rgba(128,128,128,.15);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    display: none;
}
.hs-building-tooltip--visible { display: block; }

/* Panel kondygnacji */
.hs-floor-panel {
    background: var(--hs-tip-bg);
    margin-top: 4px;
    display: none;
}
.hs-floor-panel--open { display: block; }

.hs-floor-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.hs-floor-panel-title { color: var(--hs-tip-color); font-weight: 600; font-size: .95rem; }
.hs-floor-panel-close { filter: invert(1); opacity: .7; cursor: pointer; background: none; border: none; }
.hs-floor-panel-close:hover { opacity: 1; }

/* Rzut kondygnacji */
.hs-floor-plan-wrap  { padding: 0 20px 20px; line-height: 0; }
.hs-floor-plan-inner { position: relative; display: block; line-height: 0; }
.hs-floor-plan-img   { display: block; width: 100%; height: auto; max-height: 80vh; }
.hs-floor-plan-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: visible;
}
.hs-floor-plan-svg .hs-zone       { cursor: pointer; transition: fill .15s; }
.hs-floor-plan-svg .hs-zone--sold { cursor: default; }

/* Tooltip desktop */
.hs-unit-tooltip {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 20;
    width: var(--hs-tip-width);
    background: var(--hs-tip-bg);
    color: var(--hs-tip-color);
    border: 1px solid rgba(128,128,128,.15);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    display: none;
}
.hs-unit-tooltip--visible { display: block; }

/* Nagłówek tooltipa */
.hs-tip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 0;
}
.hs-tip-header .hs-tip-title {
    display: none;
    font-size: .875rem;
    font-weight: 700;
    color: var(--hs-tip-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}
.hs-tip-title--body {
    display: block;
    font-size: .875rem;
    font-weight: 700;
    color: var(--hs-tip-color);
    margin: 0 0 4px;
    line-height: 1.3;
}
.hs-tip-close {
    background: none; border: none;
    color: var(--hs-tip-color);
    opacity: .5;
    font-size: 22px; cursor: pointer; padding: 0; line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
}
.hs-tip-close:hover { opacity: 1; }

.hs-tip-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    padding: 12px 16px;
}
.hs-tip-body { padding: 0 16px 16px; }

.hs-tip-meta { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hs-tip-meta td { padding: 10px 0; vertical-align: middle; }
.hs-tip-meta td:first-child { padding-right: 8px; opacity: .55; }
.hs-tip-meta td:last-child  { color: var(--hs-tip-color); font-weight: 500; text-align: right; }

.hs-tip-status { font-size: .75rem; font-weight: 600; }
.hs-tip-status--available { color: var(--hs-tip-accent); }
.hs-tip-status--reserved  { color: var(--hs-tip-accent); opacity: .8; }
.hs-tip-status--sold      { color: var(--hs-tip-color); opacity: .5; }

.hs-unit-tooltip .btn,
.hs-building-tooltip .btn,
.hs-mobile-overlay .btn {
    font-size: .8rem; padding: 10px 12px;
    background-color: var(--hs-tip-accent);
    border-color: var(--hs-tip-accent);
    color: #000; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 6px;
}
.hs-unit-tooltip .btn:hover,
.hs-building-tooltip .btn:hover,
.hs-mobile-overlay .btn:hover { filter: brightness(1.1); }

.hs-tip-loading {
    font-size: .8rem; color: var(--hs-tip-color);
    opacity: .5; text-align: center; padding: 24px;
}

/* Overlay mobile */
.hs-mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: var(--hs-tip-bg);
    color: var(--hs-tip-color);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    flex-direction: column;
}
.hs-mobile-overlay--open { display: flex; }

.hs-mobile-overlay .hs-tip-header { padding: 20px 20px 0; }
.hs-mobile-overlay .hs-tip-title  { font-size: 1rem; }
.hs-mobile-overlay .hs-tip-close  { font-size: 28px; opacity: .8; }
.hs-mobile-overlay .hs-tip-img    { padding: 16px 20px 12px; }
.hs-mobile-overlay .hs-tip-body   { padding: 0 20px 32px; flex: 1; }
.hs-mobile-overlay .hs-tip-meta td { padding: 13px 0; font-size: .875rem; }
.hs-mobile-overlay .btn            { margin-top: 20px; padding: 14px; font-size: .9rem; }

@media (max-width: 767.98px) {
    .hs-unit-tooltip { display: none !important; }
    .hs-mobile-overlay .hs-tip-header .hs-tip-title { display: block; }
    .hs-mobile-overlay .hs-tip-title--body           { display: none !important; }
}
