@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

[data-tab-content] {
    display: none;
}

.images-container {
    overflow-x: auto;
    white-space: nowrap;
    margin: 10px 0;
}

.images-container img {
    height: 120px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.listing-data-section {
    margin-top: 60px;
    grid-column-gap: 52px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}


.label {
    font-weight: bold;
}

button {
    padding: 10px 15px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

h4 {
    font-size: 1.6em;
}

h5 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.btn-label-full {
    display: inline;
}
.btn-label-short {
    display: none;
}

.final-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 12px;
    border-radius: 6px;
    justify-content: space-between;
}

.final-price strong {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.final-price input[type="number"] {
    width: auto;
    min-width: 90px;
    max-width: 150px;
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease;
    font-weight: 600;
}

.final-price input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.use-btn:hover {
    background: linear-gradient(135deg, #d5dbdb, #bdc3c7);
    cursor: pointer;
    transition: all 0.5s ease;
}

.use-btn.active {
    background: #ff7b2d;
    color: white;
}

.mini-edit,
.mini-ok {
    padding: 3px 8px;
    font-size: 0.7rem;
    line-height: 1.2;
    background: #ff7b2d;
    border: 1px solid #dee2e6;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    margin: 0;
    transition: all 0.5s ease;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    display: flex
}

.mini-edit:hover,
.mini-ok:hover {
    transform: translateY(-1px);
}

.estimation-variations {
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimation-variations-roi {
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimation-variations-roi-2 {
    grid-row-gap: 14px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimation-variant-icon {
    grid-column-gap: 5px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.neural {
    overflow: hidden;
}

.estimate-type {
    color: #05093499;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 138.5%;
    text-decoration: none;
}

.estimation-variant-amount-button {
    grid-column-gap: 14px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.variant-price {
    color: #656781;
    text-align: right;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: .285714rem;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.variant-price-2 {
    color: #656781;
    text-align: right;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.frame-estimation-sale-values {
    grid-row-gap: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 135px;
    display: flex;
}

.estimation-section {
    grid-row-gap: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
    margin-top: 60px;
}

.estimation-block-2 {
    grid-row-gap: 21px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimation-block-segments {
    grid-column-gap: 10px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimate-sale-price {
    background-color: #f4f4f4;
    border: 1px solid #ececf0;
    border-radius: 4px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-width: 400px;
    height: 300px;
    padding: 24px 32px;
    display: flex;
}

.estimation-amount {
    grid-row-gap: 22px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.estimation-block-name {
    color: #000;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
}

.result-amount {
    grid-row-gap: 22px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.result-amount-block {
    border-top: 1px dashed #c2ccd7;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 24px;
    text-decoration: none;
    display: flex;
}

.result-type {
    color: #050934;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 138.5%;
    text-decoration: none;
}

.result-amount-aed {
    grid-column-gap: 18px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.estimate-rent-price {
    background-color: #f4f4f4;
    border: 1px solid #ececf0;
    border-radius: 4px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-width: 400px;
    height: 300px;
    padding: 24px 32px;
    display: flex;
}

.frame-estimation-rent-values {
    grid-row-gap: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.resume-block {
    margin-top: 20px;
    padding: 10px;
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.resume_block {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.note {
    grid-column-gap: 20px;
    border: 1px solid #ececf0;
    border-radius: 4px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    height: 78px;
    padding: 24px 32px;
    text-decoration: none;
    display: flex;
}

.note.good {
    background-color: #e6f9ed;
}

.note.mid {
    background-color: #f5f7fa;
}

.note.bad {
    background-color: #ffebe0;
}

.note-title {
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none;
}

.note-text {
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    text-decoration: none;
}

.report-button {
    grid-column-gap: 10px;
    background-color: #01bf6f;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 219px;
    height: 42px;
    padding-left: 30px;
    padding-right: 30px;
    text-decoration: none;
    display: flex;
    overflow: hidden;
}

.generate-report {
    color: #fff;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none;
}

.section {
    background: #fff;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.section h4 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section ul {
    padding-left: 20px;
}

.median-summary {
    margin-top: 10px;
    font-size: 1.2em;
}

.median-summary span {
    font-weight: normal;
    color: #555;
    margin-right: 10px;
}

.median-summary strong {
    font-weight: bold;
    color: #000;
    margin-left: 5px;
}

.loader {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: #555;
    font-size: 1.2em;
}

.loader-text {
    margin-top: 15px;
}

.spinner {
    margin: auto;
    border: 6px solid #eee;
    border-top: 6px solid #ff7b2d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.listing {
    display: flex;
    border: 2px solid #ccc;
    padding: 5px;
    margin-bottom: 5px;
    align-items: flex-start;
    box-sizing: border-box;
}

.estimation-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    grid-column: span 4;
}

.estimation-block {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.estimation-block h4 {
    margin: 5px 0;
    font-size: 0.8em;
}

.estimation-value {
    font-size: 1.1em;
    font-weight: bold;
}

.estimation-small {
    font-size: 0.8em;
    color: grey;
}

.estimate-roi {
    background-color: #f4f4f4;
    border: 1px solid #ececf0;
    border-radius: 4px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-width: 400px;
    height: 300px;
    padding: 24px 32px;
    display: flex;
}

.frame-roi-values {
    grid-row-gap: 22px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.frame-roi-values-blocks {
    grid-row-gap: 14px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.frame-raw-roi {
    grid-row-gap: 14px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.frame-raw-roi-title {
    grid-column-gap: 14px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    height: 33px;
    text-decoration: none;
    display: flex;
}

.frame-raw-roi-value {
    grid-column-gap: 14px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.frame-service-charges {
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.frame-service-charges-value {
    grid-column-gap: 14px;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 220px;
    text-decoration: none;
    display: flex;
}

.frame-net-roi {
    grid-column-gap: 18px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.result-aed-only {
    color: #1b2054;
    text-align: right;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: .392857rem;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.result-aed-only-2 {
    color: #1b2054;
    text-align: right;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.price,
.price-green,
.price-red,
.price-black {
    font-size: 1.8em;
    font-weight: bold;
}

.price-green {
    color: #27ae60;
}

.price-red {
    color: #c0392b;
}

.price-black {
    color: #34495e;
}

.price-large.price-red {
    font-size: 1.6em;
}

.higher-price {
    color: green;
}

.lower-price {
    color: red;
    font-size: 1.3em;
}

.unknown-price {
    color: lightgrey;
}

#total-count, #data-total-count {
    margin: 15px 0;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 15px;
    background: #eeeeee;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
}

.checkbox-group label {
    margin-right: 10px;
}

.use-label {
    font-size: 0.75rem;
    margin-left: 4px;
}

/* ── Unit Plans: отдельная полоса ─────────────────────────── */
.unit-plans-row {
    /* вторая form-row */
    margin-top: 24px;
}

.unit-plans-row .unit-plans {
    width: 100%;
    /* занимаем всю строку */
    padding: 14px 0 8px;
    border-top: 1px dashed #d0d0d0;
    background: #fafafa;
}

/* планы располагаем горизонтально и оборачиваем при нехватке места */
.unit-plans .plans-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.unit-plans .plans-grid > div {
    flex: 0 1 240px;
    /* минимум 180 px, дальше растягивается */
    max-width: 240px;
    /* не даём превьюм «жиреть» */
    text-align: center;
}

.unit-plans .plans-grid > div:empty {
    display: none;
}

.unit-plans img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: zoom-in;
    transition: box-shadow 0.15s ease;
}

.unit-plans img:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.unit-plans .plan-label {
    margin-top: 4px;
    font-size: 0.8rem;
}


.mini-edit:hover,
.mini-ok:hover {
    background: #ff995d;
    color: white;
}

#data_app body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 24px;
    background: #f4f4f4;
}

#data_app .form-error {
    color: #c00;
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

#data_app label {
    display: block;
    /*margin-bottom: 14px;*/
}

#data_app input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

#data_app input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

#data_app select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

#data_app h4 {
    font-size: 1.4em;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

#data_app .loader {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #555;
}

#data_app .spinner {
    margin: auto;
    border: 6px solid #eee;
    border-top: 6px solid #ff7b2d;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    animation: spin 1s linear infinite;
}

#data_app .label {
    font-weight: bold;
}

#data_app .checkbox-group label {
    margin-right: 10px;
}

#data_app .form-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 10px;
}

#data_app .form-block {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    box-sizing: border-box;
}

#data_app .form-block h4 {
    margin: 0 0 12px;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

#data_app .form-block label {
    font-weight: 600;
    margin-bottom: 6px;
}

#data_app .form-block .unit-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

#data_app .form-block .unit-input label {
    flex: none;
    white-space: nowrap;
}

#data_app .form-block .unit-input input {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    min-width: 100px;
    max-width: 160px;
}

#data_app .form-block .unit-input button.secondary {
    flex: none;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
    border-radius: 50px;
}

#data_app .btn-estimate-wrapper {
    margin-top: auto;
}

#data_app .unit-params {
    flex: 1;
    max-width: 400px;
}

#data_app .unit-params label {
    flex: none;
    margin-bottom: 6px;
}

#data_app .unit-params .params-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 0;
}

#data_app .unit-params .params-row .area-field {
    display: flex;
    align-items: center;
}

#data_app .unit-params .params-row .area-field label {
    margin-right: 8px;
    white-space: nowrap;
}

#data_app .unit-params .params-row .area-field input {
    width: 80px;
}

#data_app .unit-params .params-row .rooms-field {
    display: flex;
    align-items: center;
}

#data_app .unit-params .params-row .rooms-field label {
    margin-right: 8px;
    white-space: nowrap;
}

#data_app .unit-params .params-row .rooms-field select {
    width: 80px;
}

#data_app .unit-params .params-row .rooms-field input {
    width: 60px;
}

#data_app .unit-params .area-field {
    flex: 2;
}

#data_app .unit-params .area-field input {
    width: 100%;
}

#data_app .unit-params .rooms-field {
    flex: 1;
}

#data_app .unit-params .rooms-field select {
    width: 100%;
}

#data_app .unit-params input {
    width: 100%;
}

#data_app .unit-params select {
    width: 100%;
}

#data_app .unit-params .type-field {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

#data_app .unit-params .type-field label {
    margin-right: 8px;
    white-space: nowrap;
}

#data_app .unit-params .type-field select {
    flex: 1;
    width: 100%;
}

.use-btn.disabled,
#data_app .use-btn.disabled {
    background: #ecf0f1;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    /*display: none !important;*/
}

#data_app .final-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 12px;
    border-radius: 6px;
    justify-content: space-between;
}

#data_app .final-price strong {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    flex-shrink: 0;
}

#data_app .final-price input[type="number"] {
    width: auto;
    min-width: 90px;
    max-width: 150px;
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease;
    font-weight: 600;
}

#data_app .final-price input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#data_app .mini-edit,
#data_app .mini-ok {
    padding: 3px 8px;
    font-size: 0.7rem;
    line-height: 1.2;
    background: #ff7b2d;
    border: 1px solid #dee2e6;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    margin: 0;
    transition: all 0.5s ease;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    display: flex
}

#data_app .mini-edit:hover,
#data_app .mini-ok:hover {
    background: #ff995d;
    color: white;
    transform: translateY(-1px);
}

#data_app .mini-reset:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .listing {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .estimation-block {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .estimation-block {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@supports not (gap: 12px) {
    .estimation-block {
        margin: 0 12px 12px 0;
    }
}

@media (max-width: 768px) {
    .listing_price-2 {
        grid-row-gap: 20px;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 768px) {
    .section > div[style*="display:flex"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .section > div[style*="display:flex"] > div {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

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

    .form-block,
    .unit-params {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .toast {
        max-width: 90vw;
        word-break: break-word;
    }
}

@supports not (gap: 12px) {
    .section > div[style*="display:flex"] {
        margin-right: -12px;
        margin-bottom: -12px;
    }

    .section > div[style*="display:flex"] > div {
        margin: 0 12px 12px 0;
    }
}

.final-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 8px;
}

.final-price input[type="number"] {
    width: auto;
    min-width: 80px;
    max-width: 140px;
    padding: 4px 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.mini-edit:hover,
.mini-ok:hover {
    background: #ff995d;
    color: white;
}

.use-btn,
.mini-reset,
#data_app .use-btn,
#data_app .mini-reset {
    grid-column-gap: 10px;
    /*border: 1px solid #0f1340;*/
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 20px;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    overflow: hidden;
}

.use-btn:not(.active):not(.disabled),
#data_app .use-btn:not(.active):not(.disabled) {
    background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.use-label {
    font-size: 0.75rem;
    margin-left: 4px;
}

#data_app .use-label {
    font-size: 0.75rem;
    margin-left: 4px;
}

#data_app .unit-card {
    border: 1px solid #ececf0;
    border-radius: 4px;
    background: #f4f4f4;
    padding: 12px 14px 12px 18px;
    position: relative;
    font-size: 0.9rem;
}

#data_app .unit-card h5 {
    margin: 0 0 4px;
    font-size: 1rem;
}

#data_app .unit-card .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    color: #555;
}

#data_app .unit-card .close-btn:hover {
    color: #000;
}

#data_app .unit-card p {
    margin: 2px 0;
}

#data_app .unit-card a.ex-unit {
    text-decoration: underline;
    cursor: pointer;
}

#data_app .unit-card a.ex-unit:hover {
    text-decoration: none;
}

/* Center content for final price */
.final-price > span[id*="-view"],
.final-price > span[id*="-edit"] {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.final-price .mini-reset {
    flex-shrink: 0;
    margin-left: auto;
}

#service-charges-wrap,
#data-service-charges-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    justify-content: space-between;
}

#service-charges-wrap strong,
#data-service-charges-wrap strong {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    flex-shrink: 0;
}

#service-charges-wrap > span,
#data-service-charges-wrap > span {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#service-charges-wrap .mini-reset,
#data-service-charges-wrap .mini-reset {
    flex-shrink: 0;
    margin-left: auto;
}

#data_app .final-price > span[id*="-view"],
#data_app .final-price > span[id*="-edit"] {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#data_app .final-price .mini-reset {
    flex-shrink: 0;
    margin-left: auto;
}

#data_app #data-service-charges-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 12px;
    padding: 8px;
    background: rgba(155, 89, 182, 0.05);
    border-radius: 6px;
    border-left: 3px solid #9b59b6;
    justify-content: space-between;
}

#data_app #data-service-charges-wrap strong {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    flex-shrink: 0;
}

#data_app #data-service-charges-wrap > span {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#data_app #data-service-charges-wrap .mini-reset {
    flex-shrink: 0;
    margin-left: auto;
}

/* Chart responsive container */
.section > div[style*="display: flex"],
.section > div[style*="display:flex"] {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.section > div[style*="display: flex"] > div,
.section > div[style*="display:flex"] > div {
    position: relative;
    min-height: 240px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0; /* Important for flex items to shrink properly */
}

.section canvas {
    min-height: 200px;
    max-height: 300px;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

.section .chart-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

#map_for_link_estimation {
    height: 100%;
    width: 100%;
}

#data_app #map_for_data_estimation {
    height: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    .section > div[style*="display: flex"],
    .section > div[style*="display:flex"] {
        gap: 12px !important;
        flex-wrap: wrap;
    }

    .section > div[style*="display: flex"] > div,
    .section > div[style*="display:flex"] > div {
        min-height: 200px;
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    .section > div[style*="display: flex"],
    .section > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .section > div[style*="display: flex"] > div,
    .section > div[style*="display:flex"] > div {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-height: 320px; /* Increased from 280px */
        width: 100%;
    }

    .section h5 {
        font-size: 0.9rem;
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .section canvas {
        min-height: 300px; /* Increased from 260px */
        max-height: 320px; /* Increased from 280px */
    }
}

@media (max-width: 480px) {
    .section > div[style*="display: flex"] > div,
    .section > div[style*="display:flex"] > div {
        min-height: 280px; /* Increased from 240px */
    }

    .section h5 {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .section canvas {
        min-height: 260px; /* Increased from 220px */
        max-height: 280px; /* Increased from 240px */
    }
}

/* Data app chart containers */
#data_app .section > div[style*="display: flex"],
#data_app .section > div[style*="display:flex"] {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#data_app .section > div[style*="display: flex"] > div,
#data_app .section > div[style*="display:flex"] > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
}

#data_app .section canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}

/* Data app responsive behavior */
@media (max-width: 1024px) {
    #data_app .section > div[style*="display: flex"],
    #data_app .section > div[style*="display:flex"] {
        gap: 12px !important;
        flex-wrap: wrap;
    }

    #data_app .section > div[style*="display: flex"] > div,
    #data_app .section > div[style*="display:flex"] > div {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    #data_app .section > div[style*="display: flex"],
    #data_app .section > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 16px !important;
    }

    #data_app .section > div[style*="display: flex"] > div,
    #data_app .section > div[style*="display:flex"] > div {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100%;
        min-height: 320px; /* Increased from 280px */
    }

    #data_app .section canvas {
        min-height: 300px; /* Increased from 260px */
        max-height: 320px; /* Increased from 280px */
    }
}

/* Mobile overflow protection */
@media (max-width: 767px) {
    body {
        margin: 10px;
        padding: 0;
    }

    /* Reset header and nav margins on mobile */
    .header,
    .nav {
        margin-left: -10px;
        margin-right: -10px;
        margin-top: -10px;
    }

    .header:first-child {
        margin-top: -10px;
    }

    .container {
        padding: 15px;
        margin: 0;
    }

    .section {
        padding: 12px;
        margin-top: 15px;
    }

    /* Ensure charts don't overflow on small screens */
    .section > div[style*="display: flex"],
    .section > div[style*="display:flex"],
    #data_app .section > div[style*="display: flex"],
    #data_app .section > div[style*="display:flex"] {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .section > div[style*="display: flex"] > div,
    .section > div[style*="display:flex"] > div,
    #data_app .section > div[style*="display: flex"] > div,
    #data_app .section > div[style*="display:flex"] > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1 1 100% !important;
    }

    .section canvas,
    #data_app .section canvas {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 300px !important; /* Increased from 260px */
        max-height: 300px !important;
    }
}

@media (max-width: 480px) {
    body {
        margin: 5px;
    }

    .header,
    .nav {
        margin-left: -5px;
        margin-right: -5px;
    }

    body > .header:first-child {
        margin-top: -5px;
    }

    .container {
        padding: 10px;
    }

    .section {
        padding: 8px;
    }

    .section canvas,
    #data_app .section canvas {
        height: 260px !important; /* Increased from 220px */
        max-height: 260px !important;
    }
}

.map-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.map-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.building-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    flex: 1;
    border-left: 4px solid #fc7a2d;
}

.detail-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.estimates-header-with-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.estimates-header-with-buttons h4 {
    margin: 0;
    flex: 1;
}

.estimates-buttons-inline {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.estimates-header-with-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

#data_app .estimates-header-with-buttons h4 {
    margin: 0;
    flex: 1;
}

#data_app .estimates-buttons-inline {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.statistic-result {
    grid-column-gap: 15px;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.statistic-amounts {
    grid-column-gap: 15px;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    height: auto;
    display: flex;
}

.frame-main-price {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
    position: relative;
}

.main-price-block {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 21px;
    text-decoration: none;
    display: flex;
}

.main-price-value-1 {
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: .714286rem;
    font-family: Inter, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
}

.main-price-value-2 {
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
}

.main-price-good-bad {
    border-top-left-radius: 24px;
    border-bottom-right-radius: 10px;
    justify-content: space-between;
    align-items: center;
    width: 120px;
    height: 37px;
    padding: 5px 12px 5px 13px;
    text-decoration: none;
    display: flex;
}

.main-price-good-bad.good_value {
    background-image: linear-gradient(90deg, #00bf9d 0%, #00bf66 100%);
}

.main-price-good-bad.bad_value {
    background-image: linear-gradient(90deg, #ff5f6d 0%, #d62424 100%);
}

.main-price-good-bad.market_value {
    background-image: linear-gradient(90deg, #9e9e9e 0%, #616161 100%);
}

.good-price-indicator {
    color: #fff;
    text-align: right;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 117%;
    text-decoration: none;
}

.indicator {
    grid-column-gap: 4px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.measure {
    width: 100%;
    height: 8px;
}

.measure.measure-red {
    background-color: #f63131;
}

.measure.measure-gray {
    background-color: #d4d4d4;
}

.measure.measure-green {
    background-color: #01bf6f;
}

.edit-orange {
    background-color: #ff7b2d;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    display: flex;
}

.edit-orange:hover {
    background-color: #ff995d;

    cursor: pointer;

    transition: all 0.5s ease;
}

.reset-blue {
    background-color: #0f1340;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    display: flex;
}

.reset-blue:hover {
    background-color: #1a1f66;

    cursor: pointer;

    transition: all 0.5s ease;
}

.reset-buttons-block {
    grid-column-gap: 4px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    display: flex;
}

.triangle-pointer {
    position: absolute;
    transform: translateX(-50%);
    pointer-events: none;
}

.code-embed-estimation {
    width: 100%;
}

.code-embed-estimation.params_building_name {
    min-width: 114px;
}

.code-embed-estimation.params_building_name.width2 {
    min-width: 210px;
}

.estimation_params_2 {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: auto;
    max-width: none;
    height: auto;
    text-decoration: none;
    display: flex;
}

.estimation_params_2.search_tablet {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    width: 100%;
    max-width: none;
    height: auto;
}

.estimations_params_2 {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: auto;
    max-width: none;
    height: auto;
    text-decoration: none;
    display: flex;
}

.estimations_params_2.search_tablet {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    width: 100%;
    max-width: none;
    height: auto;
}

.code-embed-2 {
    width: 100%;
    height: 42px;
}

.code-embed-2.params_type {
    min-width: 180px;
}

.code-embed-2.params_rooms {
    min-width: 114px;
}

.div-block-19 {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

@media (max-width: 1350px) {
    .estimation-block-segments {
        grid-row-gap: 10px;
        flex-flow: column;
    }

    .statistic-result {
        grid-row-gap: 16px;
        flex-flow: column;
    }
}

@media (max-width: 991px) {
    .filters_container-estimation.params {
        flex-flow: column;
    }

    .estimations_params_2 {
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .estimations_params_2.search_tablet, .estimation_params_2.search_tablet {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }

    .code-embed-2 {
        width: auto;
        min-width: 27%;
    }

    .code-embed-2.params_type, .code-embed-2.params_rooms {
        width: 100%;
        min-width: auto;
    }

    .listing_price-2 {
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
    }

    .description-block {
        width: 100% !important;
        min-width: auto !important;
        height: 415px !important;
        padding-left: 30px;
        padding-right: 30px;
    }

    .description-block h4 {
        font-size: 20px;
    }

    .description-block > div {
        line-height: 130%;
    }

    .listing-data-section {
        grid-column-gap: 0px;
        grid-row-gap: 50px;
        flex-flow: column;
    }

    .resume_block {
        grid-column-gap: 20px;
        grid-row-gap: 20px;
        flex-flow: column;
    }

    .note {
        width: 100%;
    }

    .filter_button-estimation {
        min-width: 160px;
    }

    .filters-estimation, .filters-estimation.f_tablet {
        display: flex;
    }

    .search-estimation.search_tablet {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
    }

    .code-embed-estimation {
        width: 100%;
        min-width: 40%;
    }

    .code-embed-estimation.params_building_name {
        min-width: auto;
    }

    .div-block-19 {
        flex-flow: row;
        width: 100%;
        padding-top: 20px;
    }

    .frame-estimation-sale-values {
        grid-row-gap: 10px;
        padding-bottom: 10px;
    }

    .estimate-sale-price {
        height: auto;
        padding: 20px 30px;
    }

    .result-amount-block {
        padding-top: 16px;
    }

    .estimate-rent-price, .estimate-roi {
        height: auto;
        padding: 20px 30px;
    }

    .frame-estimation-rent-values {
        grid-row-gap: 10px;
        padding-bottom: 10px;
    }

    .frame-roi-values-blocks {
        grid-row-gap: 10px;
        padding-bottom: 10px;
    }

    .filters, .filters.f_tablet {
        display: none;
    }
}

@media (max-width: 768px) {
    .estimates-header-with-buttons,
    #data_app .estimates-header-with-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .estimates-buttons-inline,
    #data_app .estimates-buttons-inline {
        width: 100%;
        justify-content: center;
    }

    .map-btn {
        align-self: flex-start;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .detail-item {
        padding: 10px;
    }

    .estimations_params_2, .estimations_params_2.search_tablet, .estimation_params_2, .estimation_params_2.search_tablet, .div-block-19 {
        flex-flow: column;
    }
}

@media (max-width: 480px) {
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Property Stats Grid - Area, Beds, Baths */
.property-stats-grid {
    grid-column-gap: 8px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.unit-stat-card {
    grid-column-gap: 11px;
    background-color: #0f134014;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 47px;
    padding: 14px 38px;
    display: flex;
}

.unit-stat-value {
    color: #000c;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 138.5%;
    text-decoration: none;
}

.listing_properties {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 130px;
    display: flex;
}

.property-line {
    border-bottom: 1px dashed #d9d9d9;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.property-title {
    color: #1f1f1f;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 219%;
    text-decoration: none;
}

.property-amount {
    color: #1f1f1f;
    text-align: right;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 219%;
    text-decoration: none;
}

.description-block {
    grid-row-gap: 25px;
    background-color: #f4f4f4;
    border: 1px solid #ececf0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 60%;
    min-width: 0;
    height: 435px;
    padding: 30px 42px;
    display: flex;
}

.description-block h4 {
    flex: none;
    margin: 0 0 15px 0;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    color: #1f1f1f;
    width: 100%;
}

.description-block > div {
    flex: 1;
    overflow-y: auto;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 138.5%;
    letter-spacing: 0.02em;
    color: #656781;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .45) transparent;
    scrollbar-gutter: stable both-edges;
    padding-inline-end: 12px;
}

/* WebKit (Chrome, Edge, Safari, Opera) */
.description-block > div::-webkit-scrollbar {
    width: 8px;
}

.description-block > div::-webkit-scrollbar-track {
    background: transparent;
}

.description-block > div::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .45);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.description-block > div::-webkit-scrollbar-thumb {
    opacity: .7;
}

.description-block > div:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.listing-price-buttons {
    grid-column-gap: 8px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.source-button-2, .map-button-2, .building-info-button {
    grid-column-gap: 10px;
    background-color: #fc7a2d;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 38px;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    overflow: hidden;
}

.listing-source, ._3d-map, .building-info {
    color: #fff;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none;
}

.building-info-location {
    grid-column-gap: 10px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.listing_price-2 {
    grid-row-gap: 31px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 40%;
    min-width: 500px;
    max-width: 600px;
    text-decoration: none;
    display: flex;
}

.statistic-amount-block {
    grid-row-gap: 8px;
    background-color: #f4f4f4;
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: 210px;
    height: auto;
    padding: 10px 14px;
    text-decoration: none;
    display: flex;
}

.statistic-amount-title {
    color: #1b2054;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 138.5%;
    text-decoration: none;
}

.statistic-amount-amount {
    color: #1b2054;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: .428571rem;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.statistic-amount-amount-2 {
    color: #1b2054;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 138.5%;
    text-decoration: none;
    display: inline-block;
}

.note-2 {
    grid-column-gap: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ececf0;
    border-radius: 4px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-width: 410px;
    height: auto;
    padding: 24px 32px;
    display: flex;
}

.note-text-2 {
    color: #1f1f1f;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    text-decoration: none;
}

.main-geo {
    color: #1f1f1f;
    letter-spacing: .02em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 138.5%;
    text-decoration: none;
}

.input-container {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.custom-input {
    width: 100%;
    height: 42px;
    background-color: #FAFAFA;
    border: 1px solid #DFDFDF;
    border-radius: 5px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #000;
    outline: none;
}

.custom-input::placeholder {
    color: #848EA8;
    opacity: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 43%;
    transform: translateY(-50%);
    width: 16px;
    height: 15px;
    pointer-events: none;
}

.report-button:hover {
    background-color: #01B066;
    cursor: pointer;
    transition: all 0.5s ease;
}

.filter_button-estimation:hover {
    background-color: #ff995d;
    transition: background-color .2s ease;
}

.filter_button-estimation:active {
    background-color: #e0661e;
}

.filter_button-estimation:disabled,
.filter_button-estimation[disabled] {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter_button-estimation:disabled:hover,
.filter_button-estimation[disabled]:hover {
    background-color: #cccccc;
    transform: none;
}

.filters-estimation.f_tablet {
    display: none;
}

.search-estimation {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-width: auto;
    max-width: none;
    height: auto;
    text-decoration: none;
    display: flex;
}

.search-estimation.search_tablet {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: row;
    width: 100%;
    max-width: none;
    height: auto;
}

.rent-sale-statistic-header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    display: flex;
}

.section-title-2 {
    color: #1f1f1f;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    text-decoration: none;
}

.rent_sale_selections-2 {
    grid-column-gap: 18px;
    flex: 0 auto;
    justify-content: flex-start;
    align-items: center;
    padding-left: 17px;
    padding-right: 17px;
    text-decoration: none;
    display: flex;
}

.transaction-header {
    width: 100%;
    display: flex;
}

.table-tile {
    color: #000;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 10px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
}

.table-tile.underline {
    text-decoration: underline;
}

.transaction-section {
    grid-row-gap: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    display: flex;
    margin-top: 60px;
}

#listings_container, #data_listings_container {
    margin-top: 60px;
}

.graph-title {
    color: #000;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: .285714rem;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
}

.graph-title-2 {
    color: #000;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Avenir, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: none;
    display: inline-block;
}

.charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-head {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.chart canvas {
    display: block;
    width: 100%;
    height: clamp(calc(220px / 1.5), calc(28vh / 1.5), calc(360px / 1.5));
    /* if proportion instead of height:
       aspect-ratio: 16 / 9; height: auto; */
}

.info-wrap {
    position: relative;
    display: inline-flex;
    margin-left: 6px;
}

.info-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 12px/1 Inter, system-ui;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #0f172a;
    cursor: help;
    padding: 0;
}

.info-wrap[data-tooltip-tone="warning"] .info-icon {
    border-color: #fdba74;
    color: #f97316;
}

.tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 320px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
    background: #fff;
    color: #0f172a;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .12s;
    z-index: 60;
}

.info-wrap[data-tooltip-tone="warning"] .tooltip {
    background: #fff7ed;
    border-color: #fdba74;
    color: #7c2d12;
}

.info-icon:hover + .tooltip,
.info-icon:focus + .tooltip,
.info-icon:focus-visible + .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip.is-floating {
    position: fixed;
    inset: auto;
    transform: none;
    max-width: min(90vw, 360px);
    z-index: 9999;
}

.info-icon {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.info-wrap:not([data-tooltip-tone="warning"]) .info-icon:hover,
.info-wrap:not([data-tooltip-tone="warning"]) .info-icon:focus,
.info-wrap:not([data-tooltip-tone="warning"]) .info-icon:focus-visible {
    background: #ff7b2d;
    color: #fff;
    border-color: #ff7b2d;
}

.info-wrap[data-tooltip-tone="warning"] .info-icon:hover,
.info-wrap[data-tooltip-tone="warning"] .info-icon:focus,
.info-wrap[data-tooltip-tone="warning"] .info-icon:focus-visible {
    background: #ff7b2d;
    color: #fff;
    border-color: #ff7b2d;
}

.inline-price-input {
    margin-left: -6px;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.result-amount-aed input.inline-price-input,
.final-price input.inline-price-input,
#data_app .result-amount-aed input.inline-price-input,
#data_app .final-price input.inline-price-input {
    font-size: inherit;
    font-weight: inherit;
}

.apply-filters {
    color: #fff;
    text-align: center;
    text-transform: capitalize;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 28px;
    text-decoration: none;
}

.more-transactions-button {
    margin: 30px 0 30px;
}

.filters {
    grid-row-gap: 20px;
    background-color: #f4f4f4;
    border: 2px solid #f4f4f4;
    border-radius: 4px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
    padding: 26px 20px;
    text-decoration: none;
    display: flex;
}

.filters.f_tablet {
    display: none;
}

.filters_container {
    grid-column-gap: 30px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: auto;
    text-decoration: none;
    display: flex;
}

.filters_container.fc_tablet {
    grid-row-gap: 20px;
    flex-flow: column;
}

#data_app .cr-radio-container {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: row;
    gap: 24px;
}

#data_app .cr-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#data_app .cr-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#data_app .cr-radio-checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    border: 1px solid #B7B7B7;
    border-radius: 50%;
    background-color: #F4F4F4;
    margin-right: 8px;
    transition: all 0.3s ease;
}

#data_app .cr-radio input:checked ~ .cr-radio-checkmark {
    border-color: #FC7A2D;
}

#data_app .cr-radio input:checked ~ .cr-radio-checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FC7A2D;
}

#data_app .cr-radio-label {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    user-select: none;
}

#data_app .cr-radio:hover .cr-radio-checkmark {
    border-color: #FC7A2D;
}

#data_app .cr-radio input:focus-visible ~ .cr-radio-checkmark {
    outline: 2px solid #FC7A2D;
    outline-offset: 2px;
}

.summary {
    padding-top: 0px !important
}

.sale-first .estimate-sale-price {
  order: 1;
}
.sale-first .estimate-rent-price {
  order: 2;
}
.sale-first .estimate-roi {
  order: 3;
}
.rent-first .estimate-rent-price {
  order: 1;
}
.rent-first .estimate-sale-price {
  order: 2;
}
.rent-first .estimate-roi {
  order: 3;
}

@media (max-width: 950px) {
    .charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .transactions-table .col-to-hide {
        display: none;
    }

    .apply-filters {
        font-size: 16px;
    }

    .listing-price-buttons {
        grid-row-gap: 8px;
        flex-direction: row !important;
        width: 100%;
    }

    .listing_price-2 {
        min-width: auto;
        width: 100%;
    }

    .statistic-amounts {
        grid-row-gap: 10px;
        flex-flow: column;
    }

    .filter_button-estimation {
        width: 100%;
        height: 40px;
    }

    .search-estimation, .search-estimation.search_tablet {
        flex-flow: column;
    }

    .code-embed-estimation {
        width: 100%;
    }

    .code-embed, .code-embed-2 {
        width: 100%;
    }

    .code-embed-2.params_rooms {
        margin-bottom: 0;
    }

    .rent-sale-statistic-header {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .rent_sale_selections-2 {
        padding-left: 0;
    }
}

@media (max-width: 479px) {
    .property-stats-grid {
        grid-row-gap: 10px;
        flex-flow: row;
    }

    .unit-stat-value {
        font-size: 12px;
    }

    .unit-stat-card {
        padding: 2px 2px;
    }

    .apply-filters {
        font-size: 14px;
    }

    .unit-stat-card {
        height: 30px;
    }

    .listing_properties {
        height: auto;
    }

    .property-title, .property-amount {
        line-height: 150%;
    }

    .listing-price-buttons {
        grid-row-gap: 8px;
        flex-direction: row !important;
        width: 100%;
    }

    .listing-source, ._3d-map, .building-info {
        font-weight: 500;
        font-size: 10px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .building-info-button, .source-button-2, .map-button-2 {
        height: 32px;
    }

    .listing-data-section {
        grid-row-gap: 30px;
    }

    .note {
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
        padding: 10px 10px 20px;
    }

    .note-text {
        font-size: 14px;
        line-height: 20px;
    }

    .report-button {
        height: 35px;
    }

    .statistic-amount-block {
        grid-row-gap: 4px;
    }

    .statistic-amount-amount {
        font-size: 20px;
    }

    .note-2 {
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: center;
        align-items: flex-start;
        min-width: auto;
        padding: 10px 20px 20px 10px;
    }

    .note-text-2 {
        font-size: 14px;
        line-height: 20px;
    }

    .main-price-block {
        padding-bottom: 10px;
    }

    .main-price-value {
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        display: flex;
    }

    .main-price-value-1 {
        font-size: 22px;
    }

    .main-price-value-2 {
        font-size: 16px;
    }

    .main-price-good-bad {
        width: 90px;
    }

    .good-price-indicator {
        font-size: 10px;
    }

    .main-geo {
        font-size: 14px;
    }

    .filter_button-estimation {
        height: 35px;
    }

    .estimation-variations {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .estimation-variations-roi {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .estimation-variant-amount-button {
        justify-content: space-between;
        width: 100%;
    }

    .frame-estimation-sale-values {
        grid-row-gap: 20px;
        height: auto;
        padding-bottom: 20px;
    }

    .estimate-sale-price {
        min-width: auto;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .estimation-amount {
        grid-row-gap: 10px;
    }

    .result-amount-block {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    .result-amount-aed {
        justify-content: space-between;
        width: 100%;
    }

    .estimate-rent-price {
        min-width: auto;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .frame-estimation-rent-values {
        padding-bottom: 20px;
    }

    .estimate-roi {
        min-width: auto;
        padding: 10px;
    }

    .frame-roi-values {
        height: auto;
        padding-bottom: 20px;
    }

    .frame-roi-values-blocks {
        height: auto;
    }

    .frame-raw-roi-title {
        grid-row-gap: 10px;
        flex-flow: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        height: auto;
    }

    .frame-raw-roi-value {
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    .div-block-17 {
        width: auto;
    }

    .frame-service-charges {
        grid-column-gap: 10px;
        grid-row-gap: 10px;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
        height: auto;
    }

    .frame-service-charges-value {
        justify-content: flex-start;
        align-items: center;
        width: 50%;
    }

    .result-aed-only {
        font-size: 18px;
    }

    .result-aed-only-2 {
        font-size: 16px;
    }

    .result-type {
        font-size: 14px;
    }

    .section-title-2 {
        font-size: 16px;
    }

    .transaction-header {
        flex-flow: column;
    }

    .graph-title {
        font-size: 14px;
    }

    .btn-label-full {
        display: none;
    }
    .btn-label-short {
        display: inline;
    }
}
