/* Aurelia LivePlan-Wyszukiwarka Graficzna */





input[name="mieszkanie"] {
    background: transparent !important;
}

#default svg {
    width: 13px !important;
    height: 13px;
    display: inline-block;
    margin: 0 0 2px 5px !important;
    transform: rotate(180deg);
    fill: #637ba0;
}

#number {
    display: none;
}

.laurowy-zakatek-mieszkania #number {
    display: block;
}

#number img {
    position: absolute;
    z-index: 0;
}

#number svg {
    position: relative;
    z-index: 1;
}

.cena-historia img {
    display: none;
}

#number polygon {
    fill: transparent;
    cursor: pointer;
    transition-duration: 300ms;
}

#archive {
    width: 100%;
}

#number polygon:hover,
#archive polygon:hover,
#archive rect:hover {
    fill: rgba(113, 113, 113, 0.65) !important;
}


/* Podstawowe style dla path i polygon */
#number polygon {
    fill: #71717135;
    transition: .15s;
    opacity: 1;
    cursor: pointer;
    animation: SmoothGlowAnimation linear 1.5s infinite;
    stroke: #0000;
}

/* Style hover z animacją */
#number polygon:hover,
#number polygon:hover {
    fill: #5d3330ad !important;
    opacity: 1;
    animation: SmoothGlowAnimation linear 1.5s infinite;
}

/* Alternatywna wersja z płynniejszą animacją */
@keyframes SmoothGlowAnimation {

    0%,
    100% {
        filter: drop-shadow(rgba(255, 255, 255, 0.2) 0px 0px 5px);
    }

    50% {
        filter: drop-shadow(rgba(255, 255, 255, 0.6) 0px 0px 10px);
    }
}

#archive svg {
    width: 100%;
    max-height: 900px;
}

#archive polygon,
#archive rect {
    opacity: 0.6 !important;
}

.button {
    padding: 16px;
    width: 100%;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 1rem;
    background-color: #a6b4bd;
    color: #fff;
}

.current-button {
    background-color: #fff;
    color: #000;
}



.status1 {
    cursor: pointer;
    fill: var(--liveplan-status-free, #ffffff33) !important;
    stroke-width: 9px;
    stroke: #00000030 !important;
}

.status2 {
    fill: var(--liveplan-status-reserved, #ffad0045) !important;
    cursor: pointer;
    stroke-width: 9px;
    stroke: #00000030 !important;
}

.status3 {
    fill: var(--liveplan-status-sold, #a15d5d70) !important;
    stroke-width: 9px;
    stroke: #00000030 !important;
}

.selected {
    stroke: #5d3330;
}

#price span {
    font-weight: normal;
}

.cena-historia {
    position: relative;
    display: block !important;
    max-width: 100%;
    line-height: 12px !important;
    font-size: 12px !important;
    margin: 0px;
    padding: 0 !important;
}

.cena-historia img {
    width: 20px;
    margin: 0 !important;
}

/* Styles for metadata rooms display */


.header-text .numer {
    font-weight: bold;
    font-size: 50px;
    color: #5d3330;
    display: block;
    line-height: 50px;
}

.header-text .podpis {
    font-size: 16px;
    color: #333;
    text-transform: uppercase;
    display: block;
}

.header-text #area {
    margin-top: 20px;
    display: block;
    color: #333;
    font-size: 38px;
    line-height: 38px;
}




#metadata {
    display: block;

    padding: 0;
}

#metadata span {
    display: inline-block;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.6;
}

#metadata .numer {
    width: 20px;
    display: inline-block;
    height: 20px;
    border: 3px solid #5d3330;
    border-radius: 20px;
    text-align: center;
    line-height: 8px;
    text-align: center;
    padding: 3px;
    background-color: #5d3330;
    color: #fff;
}

#metadata .metraz {
    min-width: 80px;
    color: #333;
    text-align: center;
    margin: 0 10px;
    font-weight: bold;
    width: max-content;
}

#metadata .pomieszczenie {
    flex: 1;
    color: #333;
}

#metadata br {
    content: "";
    display: block;
    height: 2px;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: auto;
    background-color: #5d3330;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 12px !important;
    line-height: 21px !important;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.tooltip-text.visible,
.cena-historia:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    width: auto;
    min-width: 100px;
    max-width: 100px;
    background-color: #5d3330;
    color: #fff !important;
    text-align: left;
    padding: 0;
    border-radius: 2px;
    font-size: 12px !important;
    line-height: 14px !important;
    position: fixed;
    z-index: 10000;
    bottom: auto;
    left: auto;
    transform: none;
    white-space: normal;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

.liveplan-price-tooltip {
    visibility: hidden;
    opacity: 0;
    width: auto;
    background-color: #5d3330;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 12px !important;
    line-height: 21px !important;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.liveplan-price-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

.liveplan-apartment-tooltip {
    visibility: hidden;
    opacity: 0;
    width: auto;
    background-color: #5d3330;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 12px !important;
    line-height: 21px !important;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.liveplan-apartment-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

.apartment-svg-tooltip {
    visibility: hidden;
    opacity: 0;
    width: auto;
    background-color: #5d3330;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 12px !important;
    line-height: 21px !important;
    position: fixed;
    z-index: 1000;
    white-space: nowrap;
    transition: opacity 0.3s;
    pointer-events: none;
}

.apartment-svg-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

.cena-brutto {
    display: inline-block;
    font-weight: bold !important;
}

.cena-m {
    font-size: 13px;
    padding-top: 7px;
    display: inline-block;
    line-height: 10px;
    vertical-align: text-top;
}

#response td .cena_m2,
#response .cena_m2 {
    color: #fff !important;
    font-size: 12px !important;
}

.virtual-tour-wrapper {
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 772px;
}

.virtual-tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 700px;
    padding-top: 100px;
}

@media only screen and (max-width: 767px) {
    .spotkanie {
        width: 100% !important;
    }

    .additives-tooltip-content {
        z-index: 9999999 !important;
        bottom: 52px !important;
        position: absolute !important;
        min-width: 285px !important;
    }

    .additives-icon-trigger {

        max-width: 90px !important;
    }

    .additives-tooltips-container {

        align-items: start !important;
    }

    .kolumna2>div {
        padding: 0;
    }

    #archive>div>div.px-4.w-full.lg\:w-1\/4>div>div.px-2.w-1\/2.lg\:w-full.kolumna2>div {
        margin: 0 0 5px 0 !important;
    }


    #archive>div>div>div>div>div>span {
        width: 1rem;
        height: 1rem
    }

    #price span {
        margin-right: 10px;
    }

    #is {
        font-size: 13px;
        font-weight: normal;
        line-height: 16px;
    }

    #area {
        font-size: 27px !important;
    }

    .virtual-tour-wrapper {
        aspect-ratio: 9 / 16;
        max-height: none;
    }

    .cena-m {
        font-size: 13px;
        padding-top: 1px;
        display: inline-block;
        line-height: 10px;
        vertical-align: text-top;
    }

    .kolumna2 div {
        font-size: 10px !important;
    }

    .kolumna2 div span {
        font-size: 10px !important;
    }



    .response {
        margin: 0 !important
    }

}

#price .cena-m {
    padding-right: 10px;
}

/* Style dla elementów SVG */
[data-number] {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Podświetlenie na hover-dla wszystkich elementów z tym samym data-number + data-floornumber */
.hover-highlight {
    fill: #5d3330ad !important;
    /* Czerwony kolor wypełnienia */
    stroke: #ff475700 !important;
    /* Czerwona ramka */
    stroke-width: 2 !important;
    opacity: 0.8 !important;
}

/* Zaznaczenie po kliknięciu-dla wszystkich elementów z tym samym data-number */


/* Animacja przejścia */
[data-number]:hover {}

/* Jeśli używasz innych kolorów bazowych, dostosuj odpowiednio */
.st1 {
    fill: #5d3330ad;
    /* Domyślny kolor wypełnienia */
    stroke: #cccccc00;
    /* Domyślna ramka */
    stroke-width: 1;
}

/* Efekt hover dla przycisków pięter */
[data-floornumber] {
    cursor: pointer;
    transition: all 0.2s ease;
    fill: #fff0;
}

[data-floornumber]:hover {
    fill: #ffffff5e;
    transform: translateY(0px);
}



[data-floornumber].current-floor-highlight {
    fill: #5a393761 !important;
    opacity: 1 !important;
}

.current-button {
    background-color: #5d3330 !important;
    color: white !important;
    border-color: #5d3330 !important;
}


[data-theme-color] .active-current a,
[data-theme-color] .btn-primary,
[data-theme-color] .investment-table.investment-table--single tbody td[colspan]::before {
    background-color: #5d3330 !important;
    color: #fff !important;
}

.aurelia-liveplan-container {
    max-width: 100%;
    margin: 20px 0;
}

.aurelia-liveplan-wrapper {
    display: grid;
    gap: 20px;
    grid-template-columns: 2fr 8fr !important;
}

.aurelia-liveplan-nav {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aurelia-liveplan-container h2 {
    color: #333;
    margin-top: -20px;
}

.aurelia-liveplan-legend {
    margin-top: 10px;
}

.legend-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    font-size: 12px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-block;
}

.legend-label {
    color: #555;
    font-size: 12px;
}

.aurelia-liveplan-buttons {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.aurelia-liveplan-button {
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.aurelia-liveplan-button:hover {
    background-color: #909eb366;
    border-color: #909eb366;
    color: #fff;
}

.aurelia-liveplan-button.current-button {
    background: #5d3330;
    color: white;
    border-color: #5d3330;
}

.aurelia-liveplan-response {
    flex: 1;
    min-height: 400px;
    overflow: auto;
    width: 100%;
}

.aurelia-liveplan-response svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.aurelia-liveplan-single {
    padding: 30px;
    margin-top: 30px;
    position: relative;
}

.aurelia-liveplan-single.hidden {
    display: none;
}

.aurelia-liveplan-single:not(.hidden) {
    display: block;
}

.aurelia-liveplan-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.aurelia-liveplan-close:hover {
    color: #333;
}

.custom-tooltip {
    position: fixed;
    background-color: #5d3330;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.apartment-svg-tooltip.custom-tooltip {
    background-color: #5d3330;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

.apartment-svg-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

/* Wyłącz interakcje dla sprzedanych */
[data-id].status-3,
[data-id].status-4 {
    cursor: not-allowed !important;
    opacity: 0.7;
}

.hidden,
.hidden2 {
    display: none !important;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 40px;
    background: #fff8;
    border-radius: 2px;
    padding: 10px 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin: 0;
    line-height: 18px;
    text-align: center;
}

.title-residence,
.title-building {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: capitalize;
    line-height: 12px;
}

.info-item #rooms,
.info-item #area,
.info-item #is,
.info-item #floor {
    font-weight: 900;
    font-size: 25px;
    width: 100%;
    text-align: center;
    display: block;
}

.price-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

#single h3,
.price-section h3 {
    margin: 0 0 0px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #333;
}






.cena-historia {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.cena-historia div {
    margin: 5px 0;
}

.cena-historia-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    cursor: help;
}

.cena-historia-wrapper .cena-historia {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #5d3330;
    border: none;
    color: #fff !important;
    padding: 15px 15px;
    border-radius: 4px;
    font-size: 12px !important;
    line-height: 1.6 !important;
    white-space: normal;
    min-width: 160px;
    width: auto;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    margin-bottom: 0;
    text-align: center;
    padding: 10px !important;
}



.cena-historia-wrapper .cena-historia div {
    margin: 4px 0;
    white-space: nowrap;
}

.cena-historia-wrapper .cena-historia::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #5d3330 transparent transparent transparent;
}

.cena-historia-wrapper:hover .cena-historia {
    visibility: visible;
    opacity: 1;
}

.tab-section {
    margin-top: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #5d3330;
}

.tab-button.active {
    color: #5d3330;
    border-bottom-color: #5d3330;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-content {
    margin-top: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table th,
.info-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.spotkanie {
    background-color: #5d3330;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    width: auto;
    font-size: 17px;
    border-radius: 2px;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

.liveplan-inside {
    position: relative;
}

.main-part {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 30px;
    margin-bottom: 30px;
}

.img-part {
    display: flex;
    align-items: center;
}

.img-part img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.text-part {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.text-part h2 {
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 45px;
    color: #5d3330;
}

.status-available {
    background: #d4edda;
    color: #155724;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-reserved {
    background: #fff3cd;
    color: #856404;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.additional-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.aurelia-floor-tooltip {
    display: flex;
    position: absolute;
    background: #5d3330;
    color: #fff;
    padding: 8px 12px;
    border-radius: 1px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s;
    top: 50%;
    left: 10%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 150px;
    height: 80px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .aurelia-liveplan-nav {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .aurelia-liveplan-tooltips {}



    .aurelia-liveplan-wrapper {

        grid-template-columns: 1fr !important;
    }

    .aurelia-liveplan-svg-container svg {
        height: 600px;
    }

    .aurelia-liveplan-wrapper {
        flex-direction: column;
    }

    .aurelia-liveplan-nav {
        flex: 1;
        flex-direction: row;
        gap: 10px;
    }

    .main-part {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}



/* Kontener dla obrazka i SVG */
.svg-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-preview-container .svg {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

.svg-preview-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.svg-preview-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

.aurelia-svg-preview-body svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* SVG Interactive Styles */
.aurelia-svg-preview-body svg polygon,
.aurelia-svg-preview-body svg path {
    transition: all 0.2s ease;
    cursor: pointer;
    opacity: 1;
    fill: #0000;
}

.aurelia-svg-preview-body svg polygon:hover,
.aurelia-svg-preview-body svg path:hover {
    fill: #3858e950 !important;
    opacity: 1;
    filter: brightness(0.85);
}

.aurelia-svg-preview-body svg polygon[class*="current"]:hover,
.aurelia-svg-preview-body svg path[class*="current"]:hover {
    opacity: 0.85;
    filter: brightness(1.2) saturate(1.3);
    stroke-width: 2;
}

@media (max-width: 640px) {
    .aurelia-svg-preview-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .aurelia-svg-preview-header {
        padding: 15px;
    }

    .aurelia-svg-preview-body {
        padding: 15px;
    }
}



.response {
    margin: 0;
    padding: 0;
}

.aurelia-liveplan-response {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    min-height: 0px;
}

.aurelia-liveplan-response>div {
    position: relative;
    width: 100 %;
    max-width: 100 %;
    display: block;
}

.aurelia-liveplan-response svg {
    width: 100 %;
    height: auto;
    display: block;
    max-height: 800px;
    position: relative;
    z-index: 10;
}

.aurelia-liveplan-response svg polygon,
.aurelia-liveplan-response svg path {
    cursor: pointer;
    transition: all 0.3 s ease;
    fill: #ffffff52;
}

.aurelia-liveplan-response svg polygon: hover,
.aurelia-liveplan-response svg path: hover {
    opacity: 0.8;
    fill: rgba(255, 255, 255, 0.34);
}

.aurelia-liveplan-response svg.status1 {
    fill: #ffffff80 !important;
}

.aurelia-liveplan-response svg.status2 {
    fill: #ffad0045 !important;
}

.aurelia-liveplan-response svg.status3 {
    fill: #ffad0045 !important;
}

.aurelia-liveplan-response svg.status4 {
    fill: #a15d5d70 !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.aurelia-liveplan-response svg polygon.selected,
.aurelia-liveplan-response svg path.selected {
    stroke: #ffffff !important;
    stroke-width: 0px !important;
    fill: #73737369 !important
}

.svg-preview-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100 %;
    height: 100 %;
    object-fit: cover;
    z-index: 0;
}

.apartment-svg-tooltip.custom-tooltip {
    position: fixed;
    background-color: #5d3330;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px !important;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3 s;
}

.apartment-svg-tooltip.visible {
    visibility: visible;
    opacity: 1;
}

table td {
    box-shadow: none !important;
    border: none;
}

table tr:first-child td {
    border-right: none;
}

/* Tab styles */
.tab-button {
    padding: 10px 15px;
    border: none;
    background: #f5f5f500;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tab-button: hover {
    background: #e8e8e8;
}

.tab-button.active {
    background: #fff;
    border-bottom: 2px solid #5d3330;
    color: #5d3330;
    font-weight: 600;
}

.tab-pane {
    display: none;
}

.tab-pane table th {
    background: #f9f9f983;
    text-align: center !important;
    color: #333;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: none;
}

.tab-pane table td {
    text-align: center !important;
    color: #333;
    font-size: initial;
}

.tab-pane.active {
    display: block;
}

table tr:nth-child(2n) td {
    background: rgb(0 0 0 / 2%) !important;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tooltip-text {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    z-index: 5000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    top: 100 %;
    left: 0;
    margin-top: 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2 s ease;
}

.tooltip-text.visible {
    visibility: visible;
    opacity: 1;
}

.tooltip-text table {
    font-size: 12px;
}

.tooltip-text table th {
    background: #f0f0f0;
    font-weight: 600;
    text-align: left;
}

.tooltip-text table td {
    padding: 4px;
    border-bottom: 1px solid #eee;
}

.hidden2 {
    display: none;
}

.hidden {
    display: none !important;
}

.aurelia-liveplan-single {
    display: block;
    background: #ffffff00;
    padding: 0;
    margin-top: 10px;
    animation: slideDown 0.3 s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aurelia-liveplan-single.hidden {
    display: none !important;
}

.aurelia-liveplan-close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    z-index: 99999;
}

.aurelia-liveplan-close:hover {
    color: #333;
}

.liveplan-inside {
    clear: both;
}





.text-part {
    display: flex;
    flex-direction: column;
}



.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 14px;
    color: #333;
}




.price-display {
    font-size: 24px;
    font-weight: 700;
    color: #5d3330;
    margin-top: 10px;
}

.attachments {
    display: flex;
    width: 100%;
    margin: 20px 0 0 0;
    gap: 2px;
}

.rooms-section {
    margin-top: 20px;
}

.attachments a {
    padding: 8px 16px;
    background: #444;
    color: #fff;
    display: flex !important;
    align-items: center;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 50%;
}

.attachments a: hover {
    background: #022350;
}

.additional-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.tab-section {
    margin-top: 20px;
}

.info-table {
    width: 100 %;
    border-collapse: collapse;
    font-size: 13px;
}

.info-table thead {
    background: #f9f9f9;
}

.info-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #333;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.info-table tbody tr: hover {
    background: #f9f9f9;
}

/* FILTER FORM */
.filter-form {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.filter-form-inner {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.filter-group .custom-dropdown {
    width: 100%;
    position: relative;
}

.filter-group .dropdown-trigger {
    width: 100%;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    position: relative;
    z-index: 10;
}

.filter-group .dropdown-trigger:hover {
    border-color: #999;
}

.filter-group .dropdown-trigger.open {
    border-color: #5d3330;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-group .dropdown-trigger-text {
    flex: 1;
}

.filter-group .dropdown-trigger-arrow {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.filter-group .dropdown-trigger.open .dropdown-trigger-arrow {
    transform: rotate(180deg);
}

.filter-group .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #5d3330;
    border-top: none;
    border-radius: 0 0 3px 3px;
    z-index: 1001;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-group .dropdown-menu.show {
    display: block;
}

.filter-group .dropdown-options {
    width: 100%;
}

.filter-group .dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.filter-group .dropdown-option:hover,
.filter-group .dropdown-option.focused {
    background-color: #f5f5f5;
}

.filter-group .dropdown-option.selected {
    background-color: #e8f0f5;
    color: #5d3330;
    font-weight: 500;
}

.buttons {
    flex-direction: column;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }

    .template-html-container .section_wrapper {
        align-items: center !important;
    }

    .buttons .attachments {
        margin: 0;

    }

    .header-text #area {
        margin-top: 0;
    }

    .main-part {
        grid-template-columns: 1 fr;
    }

    .info-grid {
        grid-template-columns: 1 fr;
    }
}


.apartment-svg-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.apartment-svg-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tooltip-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.tooltip-label {
    font-weight: 600;
    color: #e0e0e0;
    margin-right: 12px;
    white-space: nowrap;
}

.tooltip-value {
    text-align: center;
    color: #fff;
    font-weight: 500;
    width: 100%;
}