/*
 * arv.css - Fusion Calculator
 * Extracted from arv.html (batch-29e2-css-extraction-arv)
 * Source: 8 inline <style> blocks merged in document order
 *   Block 1 (unnamed): original lines 18-835   (ARV calculator base styles)
 *   Block 2 (unnamed): original lines 839-2265 (full component styles)
 *   Block 3 (unnamed): original lines 2270-2298 (ARV iframe scrollbar hide)
 *   Block 4 (unnamed): original lines 2300-2321 (address-input-main hide)
 *   Block 5 (unnamed): original lines 2323-2403 (thead fancy 3-D header)
 *   Block 6 (unnamed): original lines 2406-2447 (comps-table styles)
 *   Block 7 (unnamed): original lines 2449-2524 (calculate-btn + animations)
 *   Block 8 (unnamed): original lines 2526-2871 (map column, bottom-content)
 * Do not add shared/global rules here - page-specific styles only.
 */
        /* ---------------- ARV Calculator styles (unchanged) ---------------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: linear-gradient(to bottom right, #134160, #586C75, #134160, #586C75) no-repeat fixed;
            color: white;
            background-size: cover;
            padding: 20px 20px 40px;
        }


        h1 {
            font-family: 'alfarn', serif;
            text-align: center;
            color: #FDA929;
            letter-spacing: 1.5px;
            font-weight: 700;

            /* misma distancia arriba/abajo del título */
            margin: 40px 0;
        }

        h2 {
            font-family: 'alfarn', serif;
            text-align: center;
            color: #FDA929;
            letter-spacing: 1.5px;
            font-weight: 500;

            /* evita márgenes extra que rompan la simetría */
            margin: 0;
        }

        .container {
            width: 100%;
            max-width: none;
            margin: 0 auto;
            padding: 0;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
        }

        .header p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, .9);
            font-weight: 300;
        }

        .calculator-wrapper {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .input-section {
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, .2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .top-row {
            display: grid;
            grid-template-columns: 3fr 1fr 1fr;
            gap: 15px;
            align-items: start;
        }

        .address-input {
            grid-column: 1;
        }

        .compact-input {
            min-width: 0;
            max-width: 150px;
        }

        .slider-button-container {
            display: grid;
            grid-template-columns: 70% 30%;
            gap: 20px;
            align-items: start;
        }

        .sliders-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .address-type-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 15px;
            align-items: start;
            margin-bottom: 20px;
        }

        .address-input-main {
            grid-column: 1;
        }

        .compact-input-main {
            min-width: 0;
        }

        .slider-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            align-items: start;
        }

        .button-arv-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: stretch;
            justify-content: flex-start;
            padding: 15px 10px;
        }

        .button-section {
            display: flex;
            justify-content: center;
            width: 100%;
            margin: 0 auto;
        }

        .confidence-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, .05);
            border-radius: 12px;
            padding: 12px 15px;
            border: 1px solid rgba(255, 255, 255, .1);
            width: 100%;
            box-sizing: border-box;
        }

        .confidence-title {
            color: #FDA929;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-align: center;
        }

        .confidence-bar-container {
            width: 100%;
            height: 18px;
            background: rgba(255, 255, 255, .1);
            border-radius: 9px;
            overflow: hidden;
            position: relative;
        }

        .confidence-bar {
            height: 100%;
            background: linear-gradient(to right, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
            border-radius: 9px;
            transition: all .3s ease;
        }

        .confidence-indicator {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 14px;
            background: white;
            border-radius: 2px;
            box-shadow: 0 0 4px rgba(0, 0, 0, .3);
            transition: left .3s ease;
            left: 75%;
        }

        .confidence-labels {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-top: 10px;
            font-size: .75rem;
            color: rgba(255, 255, 255, .7);
            position: relative;
        }

        .confidence-labels span:first-child {
            position: absolute;
            left: 0;
        }

        .confidence-labels span:nth-child(2) {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .confidence-labels span:last-child {
            position: absolute;
            right: 0;
        }

        .bottom-content {
            display: grid;
            grid-template-columns: 30% 68%;
            gap: 2%;
            width: 100%;
            margin: 0 auto;
            align-items: start;
        }

        .top-content {
            display: grid;
            grid-template-columns: 68% 30%;
            gap: 2%;
            width: 100%;
            margin: 0 auto;
            align-items: stretch;
        }

        .input-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .input-group {
            margin-bottom: 0;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #FDA929;
            font-size: .95rem;
        }

        .input-group input[type="text"],
        .input-group input[type="number"] {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, .2);
            border-radius: 8px;
            background: rgba(255, 255, 255, .05);
            color: white;
            font-size: 1rem;
            transition: all .3s ease;
        }

        .input-group input[type="text"]:focus,
        .input-group input[type="number"]:focus {
            outline: none;
            border-color: #FDA929;
            background: rgba(255, 255, 255, .1);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, .2);
        }

        .input-group input::placeholder {
            color: rgba(255, 255, 255, .5);
        }

        .dropdown-select {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, .2);
            border-radius: 8px;
            background: rgba(255, 255, 255, .05);
            color: white;
            font-size: 1rem;
            transition: all .3s ease;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 14px;
        }

        .dropdown-select:focus {
            outline: none;
            border-color: #FDA929;
            background: rgba(255, 255, 255, .1);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, .2);
        }

        .dropdown-select option {
            background: #134160;
            color: white;
            padding: 10px;
        }

        .multi-select-container {
            position: relative;
            width: 100%;
        }

        .multi-select-display {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, .2);
            border-radius: 8px;
            background: rgba(255, 255, 255, .05);
            color: white;
            font-size: 1rem;
            transition: all .3s ease;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 14px;
        }

        .multi-select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, .95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, .3);
            border-radius: 8px;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
            display: none;
        }

        .multi-select-option {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            cursor: pointer;
            color: #134160;
            font-size: .9rem;
            border-bottom: 1px solid rgba(19, 65, 96, .1);
            transition: background-color .2s ease;
        }

        .multi-select-option:last-child {
            border-bottom: none;
        }

        .multi-select-option:hover {
            background: rgba(253, 169, 41, .2);
        }

        .multi-select-checkbox {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            accent-color: #FDA929;
        }

        .calculate-btn {
            width: 100%;
            max-width: none;
            padding: 20px 24px;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            color: #134160;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all .3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(253, 169, 41, .3);
        }

        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(253, 169, 41, .4);
        }

        .calculate-btn:active {
            transform: translateY(0);
        }

        .results-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-self: start;
        }

        .third-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-self: start;
        }

        .compact-metrics {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .result-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, .2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
        }

        .arv-result-row {
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, .05);
            border-radius: 12px;
            padding: 20px;
            margin: 15px auto 0;
            border: 1px solid rgba(255, 255, 255, .1);
            width: fit-content;
            min-width: 280px;
        }

        .arv-title-value-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 5px;
            width: 100%;
            max-width: 100%;
        }

        .arv-title-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .arv-title {
            color: #FDA929;
            font-size: 1.45rem;
            font-weight: 600;
            margin: 0;
            white-space: nowrap;
            text-align: center;
        }

        .powered-by {
            font-size: .6rem;
            color: rgba(255, 255, 255, .6);
            text-align: center;
            margin-top: 2px;
        }

        .arv-value {
            font-size: 1.64rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
            margin: 0;
            white-space: nowrap;
            text-align: center;
        }

        .selected-comps-avg {
            font-size: 1.4rem;
            color: #FDA929;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .selected-comps-value {
            font-size: 1.8rem;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .metric-card {
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, .1);
            transition: all .3s ease;
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
        }

        .metric-card h4 {
            color: #FDA929;
            margin-bottom: 10px;
            font-size: .9rem;
            font-weight: 600;
        }

        .metric-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
        }

        .analysis-card {
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, .2);
        }

        .analysis-card h4 {
            color: #FDA929;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .analysis-result {
            color: white;
            line-height: 1.6;
            font-size: .95rem;
        }

        .comps-table-container {
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, .2);
            margin-top: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            /*overflow:hidden;*/
        }

        .comps-table-container .selected-comps-avg {
            font-size: 1.1rem;
            color: #FDA929;
            margin-bottom: 5px;
            text-align: center;
            font-weight: bold;
        }

        .comps-table-container .selected-comps-value {
            font-size: 1.4rem;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
            text-align: center;
            margin-bottom: 15px;
        }

        .comps-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255, 255, 255, .05);
            border-radius: 8px;
            /*overflow:hidden;*/
            font-size: .85rem;
            table-layout: fixed;
        }

        .comps-table th {
            background: linear-gradient(180deg, rgba(253, 169, 41, .22), rgba(253, 169, 41, .10));
            color: #FDA929;
            padding: 8px 6px;
            text-align: left;
            font-weight: 600;
            font-size: .8rem;
            border-bottom: 1px solid rgba(255, 255, 255, .1);
            white-space: normal !important;
            /*overflow:hidden;*/
            text-overflow: ellipsis;
        }

        .comps-table td {
            padding: 6px 6px;
            border-bottom: 1px solid rgba(255, 255, 255, .1);
            color: white;
            font-size: .8rem;
            white-space: nowrap;
            /*overflow:hidden;*/
            text-overflow: ellipsis;
        }

        .comp-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #FDA929;
        }

        .map-container {
            background: rgba(255, 255, 255, .1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, .2);
            margin-top: 0;
            margin-left: 0;
        }

        #map {
            height: 400px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, .2);
        }

        /* ---------------- Scoped styles for the Google Places dropdown ---------------- */
        .lf-places {
            position: relative;
        }

        .lf-places .lf-dropdown {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 6px);
            background: rgba(255, 255, 255, 0.95);
            color: #134160;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
            overflow: hidden;
            z-index: 1000;
            display: none;
        }

        .lf-places .lf-dropdown.show {
            display: block;
        }

        .lf-places .lf-status {
            padding: 12px 14px;
            font-size: 13px;
            color: #134160;
            opacity: .8;
        }

        .lf-places [role="listbox"] {
            list-style: none;
            margin: 0;
            padding: 0;
            max-height: 320px;
            overflow: auto;
        }

        .lf-places .lf-item {
            padding: 12px 14px;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            align-items: center;
            cursor: pointer;
            transition: background .08s ease;
        }

        .lf-places .lf-item:hover,
        .lf-places .lf-item[aria-selected="true"] {
            background: rgba(253, 169, 41, .18);
        }

        .lf-places .lf-primary {
            font-size: 15px;
            color: #134160;
        }

        .lf-places .lf-secondary {
            grid-column: 1 / -1;
            font-size: 12px;
            color: #334155;
            opacity: .85;
            margin-top: 2px;
        }

        .lf-places .lf-badge {
            font-size: 11px;
            color: #134160;
            background: #F3F4F6;
            border: 1px solid #E5E7EB;
            padding: 2px 8px;
            border-radius: 999px;
        }

        .chips {
            display: flex;
            gap: 6px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .chip {
            font-size: 12px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid #e5e7eb;
            background: #fff;
            color: #374151;
        }

        /* Responsive tweaks preserved from ARV */
        @media (max-width:1400px) {
            .container {
                width: 98%;
            }
        }

        @media (max-width:1200px) {
            .container {
                width: 99%;

                .bottom-content {
                    gap: 20px;
                }
            }
        }

        @media (max-width:968px) {
            .address-type-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .slider-button-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .slider-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .arv-metrics-container {
                grid-template-columns: 1fr;
            }

            .compact-metrics {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width:768px) {
            .header h1 {
                font-size: 2.5rem;
            }

            .compact-metrics {
                grid-template-columns: 1fr;
            }

            .slider-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        @media (max-width:480px) {
            .header h1 {
                font-size: 2rem;
            }

            .input-section,
            .result-card,
            .analysis-card {
                padding: 20px;
            }

            .arv-value {
                font-size: 2rem;
            }
        }

/* === (unnamed-2) === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }



        .container {
            width: 100%;
            max-width: none;
            margin: 0 auto;
            padding: 0px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 300;
        }

        .calculator-wrapper {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .input-section {
            background: transparent;
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .top-row {
            display: grid;
            grid-template-columns: 3fr 1fr 1fr;
            gap: 15px;
            align-items: start;
        }

        .address-input {
            grid-column: 1;
        }

        .compact-input {
            min-width: 0;
            max-width: 150px;
        }

        .slider-button-container {
            display: grid;
            grid-template-columns: 70% 30%;
            gap: 20px;
            align-items: start;
        }

        .sliders-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .address-type-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 15px;
            align-items: start;
            margin-bottom: 20px;
        }

        .address-input-main {
            grid-column: 1;
        }

        .compact-input-main {
            min-width: 0;
        }

        .slider-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            align-items: start;
        }

        .button-arv-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: stretch;
            justify-content: flex-start;
            padding: 15px 10px;
        }

        .button-section {
            display: flex;
            justify-content: center;
            width: 100%;
            margin: 0 auto;
        }

        .arv-result-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            border-radius: 12px;
            padding: 20px 15px;
            width: 100%;
            box-sizing: border-box;
            /* overflow:hidden; */

            border-radius: 12px;
            text-align: center;
            padding: 20px;


            position: relative;
            background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
            border: 1px solid rgba(255, 255, 255, .22);
            border-radius: 16px;
            padding: 9px 8px;
            text-align: center;
            backdrop-filter: blur(8px);
            box-shadow: 0 10px 28px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 255, 255, .06) inset;

            padding: 7px 6px;
            border-radius: 12px;
        }

        .confidence-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 12px 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            box-sizing: border-box;
        }

        .confidence-title {
            color: #FDA929;
            font-size: 1.0rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-align: center;
        }

        .confidence-bar-container {
            width: 100%;
            height: 18px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 9px;
            /*overflow: hidden;*/
            overflow: visible;
            position: relative;
        }

        .confidence-bar {
            height: 100%;
            background: linear-gradient(to right, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
            border-radius: 9px;
            transition: all 0.3s ease;
        }

        .confidence-indicator {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 14px;
            background: white;
            border-radius: 2px;
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
            transition: left 0.3s ease;
            left: 50%;
            z-index: 2;
        }

        /* La etiqueta numérica encima del indicador */
        .confidence-label {
            position: absolute;
            bottom: calc(100%);
            /* 6px de separación sobre la barrita */
            left: 75%;
            transform: translateX(-50%);
            font-size: 12px;
            font-weight: 600;
            line-height: 1;
            color: white;
            white-space: nowrap;
            pointer-events: none;
            /*text-shadow: 0 1px 2px rgba(255,255,255,.8), 0 0 2px rgba(0,0,0,.15);*/
        }


        .confidence-labels {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-top: 10px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.7);
            position: relative;
        }

        .confidence-labels span:first-child {
            position: absolute;
            left: 0;
        }

        .confidence-labels span:nth-child(2) {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .confidence-labels span:last-child {
            position: absolute;
            right: 0;
        }

        .bottom-content {
            display: grid;
            grid-template-columns: 68% 30%;
            gap: 2%;
            width: 100%;
            margin: 0 auto;
            align-items: start;
        }

        .input-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .input-group {
            margin-bottom: 0;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #FDA929;
            font-size: 0.95rem;
        }

        .input-group input[type="text"],
        .input-group input[type="number"] {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .dual-range-container {
            position: relative;
            height: 25px;
            margin: 8px 0;
        }

        .dual-range-slider {
            position: absolute;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
            appearance: none;
            cursor: pointer;
            pointer-events: none;
            top: 12px;
        }

        .dual-range-slider::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(253, 169, 41, 0.4);
            pointer-events: all;
            position: relative;
            z-index: 2;
        }

        .dual-range-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(253, 169, 41, 0.4);
            pointer-events: all;
        }

        .range-track {
            position: absolute;
            top: 12px;
            height: 6px;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            border-radius: 3px;
            z-index: 1;
        }

        .single-range-container {
            position: relative;
            height: 25px;
            margin: 8px 0;
        }

        .distance-slider {
            position: absolute;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
            appearance: none;
            cursor: pointer;
            top: 12px;
            z-index: 2;
        }

        .distance-slider::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(253, 169, 41, 0.4);
            position: relative;
            z-index: 3;
        }

        .distance-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 6px rgba(253, 169, 41, 0.4);
            position: relative;
            z-index: 3;
        }

        .single-range-track {
            position: absolute;
            top: 12px;
            height: 6px;
            background: linear-gradient(45deg, #FDA929, #ffb84d);
            border-radius: 3px;
            z-index: 1;
            left: 0;
        }


        .slider-header,
        .slider-title,
        .slider-value,
        .dual-range-value,
        .single-range-value {
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        label,
        span,
        p.slider-value,
        .value-display {
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;
            font-weight: 600;
        }

        /* FIX: no dejes que el font-family de la tabla pise Font Awesome */
        #comps-table .fa-solid,
        #comps-table .fa-regular {
            font-family: "Font Awesome 6 Free" !important;
        }

        #comps-table .fa-solid {
            font-weight: 900 !important;
        }

        /* solid */
        #comps-table .fa-regular {
            font-weight: 400 !important;
        }

        /* regular */

        #comps-table .fa-brands {
            font-family: "Font Awesome 6 Brands" !important;
            font-weight: 400 !important;
        }



        .input-group input[type="text"]:focus,
        .input-group input[type="number"]:focus {
            outline: none;
            border-color: #FDA929;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, 0.2);
        }

        .input-group input[type="text"]::placeholder,
        .input-group input[type="number"]::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .dropdown-select {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 14px;
        }

        .dropdown-select:focus {
            outline: none;
            border-color: #FDA929;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, 0.2);
        }

        .dropdown-select option {
            background: #134160;
            color: white;
            padding: 10px;
        }

        .multi-select-container {
            position: relative;
            width: 100%;
        }

        .multi-select-display {
            width: 100%;
            padding: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 14px;
        }

        .multi-select-display:focus {
            outline: none;
            border-color: #FDA929;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(253, 169, 41, 0.2);
        }

        .multi-select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: none;
        }

        .multi-select-option {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            cursor: pointer;
            color: #134160;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(19, 65, 96, 0.1);
            transition: background-color 0.2s ease;
        }

        .multi-select-option:last-child {
            border-bottom: none;
        }

        .multi-select-option:hover {
            background: rgba(253, 169, 41, 0.2);
        }

        .multi-select-checkbox {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            accent-color: #FDA929;
        }

        .autocomplete-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: none;
        }

        .autocomplete-item {
            padding: 12px 15px;
            cursor: pointer;
            color: #134160;
            font-size: 0.9rem;
            border-bottom: 1px solid rgba(19, 65, 96, 0.1);
            transition: background-color 0.2s ease;
        }

        .autocomplete-item:last-child {
            border-bottom: none;
        }

        .autocomplete-item:hover {
            background: rgba(253, 169, 41, 0.2);
            color: #134160;
        }

        .autocomplete-suggestions::-webkit-scrollbar {
            width: 6px;
        }

        .autocomplete-suggestions::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .autocomplete-suggestions::-webkit-scrollbar-thumb {
            background: rgba(253, 169, 41, 0.6);
            border-radius: 3px;
        }

        .autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
            background: rgba(253, 169, 41, 0.8);
        }


        .results-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-self: start;
        }

        .third-column {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-self: start;
        }

        .compact-metrics {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .compact-metrics .metric-card {
            padding: 15px;
        }

        .compact-metrics .metric-card h4 {
            font-size: 0.8rem;
            margin-bottom: 8px;
        }

        .compact-metrics .metric-value {
            font-size: 1.1rem;
        }

        .result-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .arv-result-row {
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 20px;
            margin: 15px auto 0 auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: fit-content;
            min-width: 280px;
        }

        .arv-result-left {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .arv-result-right {
            display: flex;
            align-items: center;
        }

        .arv-title-value-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 5px;
            width: 100%;
            max-width: 100%;
        }

        .arv-title-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .arv-title {
            color: #FDA929;
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
            white-space: nowrap;
            text-align: center;
            font-family: 'alfarn', serif;
        }

        .powered-by {
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            margin-top: 2px;
        }

        .arv-value {
            font-size: 1.64rem;
            font-weight: 700;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            margin: 0;
            white-space: nowrap;
            text-align: center;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;

        }

        .selected-comps-avg {
            font-size: 1.4rem;
            color: #FDA929;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .selected-comps-value {
            font-size: 1.8rem;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .metric-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .metric-card h4 {
            color: #FDA929;
            margin-bottom: 10px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .metric-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
        }

        .footer {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            text-align: center;
            padding: 5px;
            margin-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        }

        .footer .disclaimer {
            width: 70%;
            font-size: 14px;
            line-height: 1.6;
            margin: 10px auto;
            letter-spacing: 0.5px;
        }

        .disclaimer-label {
            color: #FDA929;
            font-size: 20px;
            line-height: 1.6;
            margin: 5px;
            font-weight: bold;
        }


        .analysis-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .analysis-card h4 {
            color: #FDA929;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .analysis-result {
            color: white;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .comps-table-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: 0px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            /*overflow: hidden;*/
        }

        .comps-table-container .selected-comps-avg {
            font-size: 1.1rem;
            color: #FDA929;
            margin-bottom: 5px;
            text-align: center;
            font-weight: bold;
        }

        .comps-table-container .selected-comps-value {
            font-size: 1.4rem;
            font-weight: 600;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            text-align: center;
            margin-bottom: 15px;
        }

        .comps-table-container h3 {
            color: #FDA929;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            text-align: center;
        }



        .tooltip-cell {
            position: relative;
            /*white-space: nowrap;       */
            overflow: visible;
            /*text-overflow: ellipsis;               */
        }

        .tooltip-clip {
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


        .tooltip-cell[data-overflow="1"]:hover::after,
        .tooltip-cell[data-overflow="1"]:focus-visible::after {
            content: attr(data-tooltip);
            position: absolute;
            z-index: 9999;
            top: 100%;
            left: 0;
            transform: translateY(6px);
            max-width: min(600px, 80vw);
            white-space: normal;
            line-height: 1.35;
            background: #111827;
            color: #fff;
            border-radius: 8px;
            padding: 10px 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
            pointer-events: none;
        }

        /* flechita SOLO si hay overflow */
        .tooltip-cell[data-overflow="1"]:hover::before,
        .tooltip-cell[data-overflow="1"]:focus-visible::before {
            content: "";
            position: absolute;
            top: 100%;
            left: 10px;
            transform: translateY(0);
            border: 6px solid transparent;
            border-top-color: #111827;
            margin-top: -6px;
            pointer-events: none;
        }

        .tooltip-cell:focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
        }

        .comp-checkbox {
            width: 16px;
            height: 16px;
            accent-color: #FDA929;
        }

        .map-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-top: 0;
            margin-left: 0;
        }

        .map-container h3 {
            color: #FDA929;
            margin-bottom: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            font-family: 'alfarn', serif;

        }

        #map {
            height: 650px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .resultado-exitoso {
            color: white;
        }

        .resultado-exitoso h4,
        .resultado-exitoso h5 {
            color: #FDA929;
            margin-bottom: 10px;
            margin-top: 20px;
        }

        .resultado-exitoso h4:first-child {
            margin-top: 0;
        }

        .property-details,
        .valuation-details,
        .comparables-section,
        .online-checks-section,
        .notes-section,
        .investment-recommendation {
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border-left: 3px solid #FDA929;
        }

        .comparable-item {
            margin: 10px 0;
            padding: 12px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comparable-item p {
            margin: 5px 0;
            font-size: 0.9rem;
        }

        .external-link {
            color: #FDA929;
            text-decoration: none;
            font-weight: 600;
        }

        .external-link:hover {
            text-decoration: underline;
        }

        .analysis-notes {
            font-style: italic;
            background: rgba(255, 255, 255, 0.05);
            padding: 10px;
            border-radius: 5px;
            border-left: 2px solid #FDA929;
        }

        .positive {
            color: #4CAF50;
            font-weight: 600;
        }

        .negative {
            color: #f44336;
            font-weight: 600;
        }

        .warning {
            color: #FF9800;
            font-weight: 600;
        }

        .final-recommendation {
            font-size: 1.1rem;
            padding: 12px;
            border-radius: 8px;
            margin-top: 15px;
            text-align: center;
        }

        .final-recommendation.positive {
            background: rgba(76, 175, 80, 0.2);
            border: 1px solid #4CAF50;
        }

        .final-recommendation.negative {
            background: rgba(244, 67, 54, 0.2);
            border: 1px solid #f44336;
        }

        .final-recommendation.warning {
            background: rgba(255, 152, 0, 0.2);
            border: 1px solid #FF9800;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #FDA929;
            font-size: 1.1rem;
        }

        .resultado-error {
            color: #f44336;
            background: rgba(244, 67, 54, 0.1);
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #f44336;
        }

        .resultado-error h4 {
            margin-bottom: 10px;
        }

        .comps-spreadsheet-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            overflow: hidden;
        }

        .comps-spreadsheet-table th {
            background: rgba(253, 169, 41, 0.2);
            color: #FDA929;
            padding: 8px 6px;
            text-align: left;
            font-weight: 600;
            font-size: 0.95rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
        }

        .comps-spreadsheet-table td {
            padding: 6px 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .comp-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .residential-row {
            background: rgba(76, 175, 80, 0.1);
        }

        .residential-row:hover {
            background: rgba(76, 175, 80, 0.15);
        }

        .commercial-row {
            background: rgba(33, 150, 243, 0.1);
        }

        .commercial-row:hover {
            background: rgba(33, 150, 243, 0.15);
        }

        .land-row {
            background: rgba(255, 152, 0, 0.1);
        }

        .land-row:hover {
            background: rgba(255, 152, 0, 0.15);
        }

        .comp-checkbox-analysis {
            width: 16px;
            height: 16px;
            accent-color: #FDA929;
        }

        .subject-property-row {
            background: linear-gradient(to bottom right, #134160, #586C75, #134160, #586C75) no-repeat fixed;
            text-align: center;
        }

        .subject-property-row:hover {
            background: linear-gradient(to bottom right, #2b6388, #586C75, #2b6388, #586C75) no-repeat fixed;
        }

        .subject-property-row td {
            font-weight: 600;
            color: white !important;
        }

        @media (max-width: 1400px) {
            .container {
                width: 98%;
            }
        }

        @media (max-width: 1200px) {
            .container {
                width: 99%;
            }

            .bottom-content {
                gap: 20px;
            }
        }

        @media (max-width: 968px) {
            .address-type-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .slider-button-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .slider-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .button-arv-section {
                gap: 20px;
            }

            .arv-metrics-container {
                grid-template-columns: 1fr;
            }

            .compact-metrics {
                grid-template-columns: 1fr 1fr;
            }

        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2.5rem;
            }

            .compact-metrics {
                grid-template-columns: 1fr;
            }

            .slider-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 2rem;
            }

            .input-section,
            .result-card,
            .analysis-card {
                padding: 20px;
            }

            .arv-value {
                font-size: 2rem;
            }
        }

        a.zillow-link:link {
            color: white;
            font-weight: bold;
        }

        a.zillow-link:visited {
            color: #FDA929;
            font-weight: bold;
        }

        /* bulletpoints in Market Status*/
        .list-yellow {
            list-style: disc;
            padding-inline-start: 1.5rem;
            margin: 0;
        }

        /* 2) Visual Centering */
        .list-yellow li {
            line-height: 1.27;
        }

        /* 3) Vignette style */
        .list-yellow li::marker {
            color: yellow;
            font-size: 1.35em;
        }

        /* 4) */
        .list-yellow li {
            text-indent: -0.55em;
        }

        .list-red {
            list-style: disc;
            padding-inline-start: 1.5rem;
            margin: 0;
        }

        /* 2) Centrado visual: controla el line-height del LI */
        .list-red li {
            line-height: 1.27;
            /* prueba 1.15-1.3 según tu tipografía */
            /* opcional: si la viñeta aún "se ve baja", baja un poco el line-height */
        }

        /* 3) Estilo de la viñeta */
        .list-red li::marker {
            color: red;
            /* color de la viñeta */
            font-size: 1.35em;
            /* más grande */
            /* (::marker acepta color y propiedades de fuente como font-size) */
        }

        /* 4) (opcional) Aprieta todavía más el hueco con un pequeñísimo text-indent
                ¡ojo! no te pases o el texto puede pisar la viñeta */
        .list-red li {
            text-indent: -0.55em;
            /* acorta el gap marcador-texto */
        }

        .list-white {
            list-style: disc;
            /* viñeta nativa */
            padding-inline-start: 1.5rem;
            /* menos padding = más cerca del texto */
            margin: 0;
        }

        /* 2) Centrado visual: controla el line-height del LI */
        .list-white li {
            line-height: 1.27;
            /* prueba 1.15-1.3 según tu tipografía */
            /* opcional: si la viñeta aún "se ve baja", baja un poco el line-height */
        }

        /* 3) Estilo de la viñeta */
        .list-white li::marker {
            color: white;
            /* color de la viñeta */
            font-size: 1.35em;
            /* más grande */
        }

        .list-white li {
            text-indent: -0.55em;
            /* acorta el gap marcador-texto */
        }

        .averages-container {
            display: flex;
            /* Makes the parent a flex container */
            /* Optional: Adjust alignment and spacing */
            justify-content: space-around;
            /* Distributes space around items */
            align-items: center;
            /* Vertically centers items */
            gap: 20px;
            /* Adds space between the child divs */
        }




        /*=================== GLASS GOLDEN STYLE ================= */
        /* --- Selected Comps KPI band (Rehab-like style) --- */
        .kpi-band {
            display: grid;
            grid-template-columns: 1fr 1.3fr 1fr;
            /* bigger middle column */
            gap: 18px;
            margin: 10px 0 18px;
        }


        .kpi-card {
            position: relative;
            background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));
            border: 1px solid rgba(255, 255, 255, .22);
            border-radius: 16px;
            padding: 9px 8px;
            text-align: center;
            backdrop-filter: blur(8px);
            box-shadow: 0 10px 28px rgba(0, 0, 0, .30), 0 0 0 1px rgba(255, 255, 255, .06) inset;
        }

        .kpi-card.small {
            padding: 7px 6px;
            border-radius: 12px;
        }

        .kpi-card.large {
            padding: 7px 6px;
            border-radius: 12px;
        }

        .kpi-card .kpi-label {
            font-size: .9rem;
        }

        .kpi-card .kpi-value {
            font-size: 1.3rem;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;

        }



        .kpi-card:before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 16px;
            pointer-events: none;
            box-shadow: 0 0 0 1px rgba(253, 169, 41, .35), 0 0 22px rgba(253, 169, 41, .15) inset;
        }

        .kpi-label {
            font-family: 'alfarn', serif;
            font-size: 16px;
            letter-spacing: .5px;
            color: #FDA929;
            opacity: .95;

            .ARVselected {
                font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;
                text-transform: uppercase;
                font-style: italic;
                font-size: 13px;
                letter-spacing: .5px;
                color: #FDA929;
                opacity: .75;
            }
        }

        .kpi-value {
            margin-top: 6px;
            font-weight: 800;
            font-size: 16px;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
        }

        .kpi-sub {
            margin-top: 4px;
            font-size: .75rem;
            color: rgba(255, 255, 255, .7);
        }

        /* Title row styling to match Rehab */
        .comps-kpi-title {
            font-family: 'alfarn', serif;
            font-size: 1.3rem;
            text-align: center;
            color: #FDA929;
            letter-spacing: 1px;
            margin: 0 0 10px;
            text-decoration: underline;
        }

        /* Make the table container pop a bit more */
        .comps-table-container {
            background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
            border: 1px solid rgba(255, 255, 255, .22);
            box-shadow: 0 10px 28px rgba(0, 0, 0, .30);
        }

        /* Responsive */
        @media (max-width: 1100px) {
            .kpi-band {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 680px) {
            .kpi-band {
                grid-template-columns: 1fr;
            }
        }

/* === (unnamed-3) === */
        /* …estilos ARV… */

        /* Ocultar scrollbars DENTRO del iframe ARV */
        html::-webkit-scrollbar,
        body::-webkit-scrollbar {
            width: 0;
            height: 0;
            background: transparent;
        }

        html,
        body {
            scrollbar-width: none;
            scrollbar-color: transparent transparent;
            -ms-overflow-style: none;
        }

        /* Si algún contenedor con overflow muestra barra propia, ocúltala también: */
        .lf-places [role="listbox"]::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

        .lf-places [role="listbox"] {
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

/* === (unnamed-4) === */
        /* Ocultar por completo la columna de Property Address (título + campo) */
        .address-input-main {
            display: none !important;
        }

        .address-input-main label {
            display: none !important;
        }

        /* Reasignar el grid de 4 → 3 columnas: Property Type, Location Type, Market Status */
        .address-type-row {
            grid-template-columns: 1fr 1fr 1fr !important;
        }

        /* Responsivo: en móviles ya lo tienes a 1 columna; reforzamos por si hay estilos duplicados */
        @media (max-width: 968px) {
            .address-type-row {
                grid-template-columns: 1fr !important;
            }
        }

/* === (unnamed-5) === */
        /* =================== THEAD STYLE START ================ */

        /* --- Fancy 3-D header --- */
        .comps-table thead tr {
            position: sticky;
            /* stays visible when you scroll long lists */
            top: 0;
            z-index: 3;
        }

        .comps-table thead th {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06))
                /* glass top */
                ,
                linear-gradient(180deg, rgba(19, 65, 96, .65), rgba(19, 65, 96, .35));
            /* deep base */
            ;
            color: #ffcc7a;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-size: .7rem;
            letter-spacing: .4px;
            text-transform: none;
            font-weight: 700;
            border-radius: 5px;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, .35),
                /* top edge highlight */
                inset 0 -2px 4px rgba(0, 0, 0, .25),
                /* bottom inner shadow */
                0 4px 12px rgba(0, 0, 0, .25);
            /* drop shadow gives 3-D */
        }


        /* optional: subtle hover when sorting headers in future */
        .comps-table thead th:hover {
            filter: brightness(1.05);
        }


        /* --- Subject property row (gold glass + 3-D) --- */
        .comps-table tbody tr.subject-row td {
            background: transparent;
            color: #102533;
            font-weight: 700;
            border-top: 1px solid rgba(255, 255, 255, .25);
            border-bottom: 1px solid rgba(255, 255, 255, .25);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, .35),
                inset 0 -2px 4px rgba(0, 0, 0, .20);
        }

        /* keep numbers/metrics in this row crisp white if needed */
        .comps-table tbody tr.subject-row td,
        .comps-table tbody tr.subject-row td * {
            text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
        }

        /* round row ends slightly for a card-like feel */
        .comps-table tbody tr.subject-row td:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .comps-table tbody tr.subject-row td:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }


        /* regular rows hover */
        .comps-table tbody tr:not(.subject-row):hover td {
            background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
        }


        /* =================== THEAD STYLE END ================ */

/* === (unnamed-6) === */
        .comps-table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            /* overflow:hidden; */
            font-size: 0.5rem;
            table-layout: fixed;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            font-weight: 100;

        }

        .comps-table th {
            background: rgba(253, 90, 41, 0.2);
            color: #FDA929;
            padding: 8px 6px;
            text-align: left;
            font-weight: 400;
            font-size: 0.7rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
            /* overflow:hidden; */
            text-overflow: ellipsis;

        }

        .comps-table td {
            padding: 6px 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 0.7rem;
            white-space: nowrap;
            /* overflow:hidden; */
            text-overflow: ellipsis;
        }

        .comps-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
        }

/* === (unnamed-7) === */
        /* Golden pill button (fixed position, no shift) */
        .calculate-btn {
            width: 100%;
            padding: 16px 28px;
            padding-left: 56px;
            /* room for spinner on the left */
            display: block;
            /* avoid flex reflow */
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 800;
            font-size: 1.05rem;

            color: #fff;
            background: linear-gradient(180deg, #FFA733 0%, #FDBA4D 100%);
            border: 1px solid rgba(255, 255, 255, .35);
            border-radius: 9999px;

            box-shadow:
                0 6px 18px rgba(253, 169, 41, .35),
                inset 0 2px 0 rgba(255, 255, 255, .35);
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
            position: relative;
            /* needed for absolute spinner */
            font-family: 'alfarn', serif;
        }

        .calculate-btn:hover {
            transform: translateY(-1px);
            box-shadow:
                0 10px 24px rgba(253, 169, 41, .45),
                inset 0 2px 0 rgba(255, 255, 255, .40);
            filter: saturate(1.05);
        }

        .calculate-btn:active {
            transform: translateY(0);
        }

        .calculate-btn:disabled {
            opacity: .9;
            cursor: not-allowed;
        }

        /* Spinner (absolute so it never shifts layout) */
        .calculate-btn::after {
            content: "";
            position: absolute;
            left: 22px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            border: 3px solid transparent;
            /* invisible by default */
            border-top-color: transparent;
            border-radius: 50%;
            opacity: 0;
            /* hidden when idle */
            pointer-events: none;
        }

        /* Show/animate spinner while loading */
        .calculate-btn.is-loading::after {
            border-color: rgba(255, 255, 255, .35);
            border-top-color: #fff;
            opacity: 1;
            animation: lf-spin .8s linear infinite;
        }

        @keyframes lf-spin {
            to { transform: translateY(-50%) rotate(360deg); }
        }

/* === (unnamed-8) === */
        /* Map column: sticky under the top-left ARV card, and scrolls independently */
        .bottom-content {
            align-items: start;
        }

        /* already present, just ensuring */
        .map-container {
            position: sticky;
            top: var(--map-sticky-top, 16px);
            /* set dynamically below */
            max-height: 650px;
            overflow: auto;
            /* independent scroll when needed */
            align-self: start;
            /* don't stretch */
        }

        /* Make the map itself fit the sticky container */
        .map-container>h3 {
            margin-bottom: 12px;
        }

        #map {
            min-height: 400px;
            height: 300px;
            /* header + paddings */
        }

        @media (max-width: 968px) {

            /* Disable sticky on small screens for better UX */
            .map-container {
                position: static;
                max-height: none;
                overflow: visible;
            }

            #map {
                height: 400px;
            }
        }


        /* =========================================================
   RENT-ESTIMATOR parity: TABLE WRAP (aplica solo a #comps-table)
   Objetivo: misma "modalidad" visual (wrap, sticky head, paddings, hover)
   ========================================================= */
        .table-wrap {
            margin-top: 12px;
            border-radius: 16px;
            overflow: hidden;
            /* recorta para que el radius se respete */
            border: 1px solid rgba(255, 255, 255, 0.16);
        }

        .table-scroll {
            max-height: none;
            overflow: visible;
        }

        /* Base */
        #comps-table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
            /* conserva tu layout actual */
        }

        /* Header (estilo más parecido a rent-estimator) */
        #comps-table thead {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
        }

        #comps-table thead th {
            position: sticky;
            top: 0;
            z-index: 2;
            /* neutraliza efectos muy "3D" si existían */
            box-shadow: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        }

        /* Celdas */
        #comps-table th,
        #comps-table td {
            font-size: 12px;
            /* rent-estimator usa 12px */
            padding: 10px 8px;
            /* rent-estimator padding */
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        /* Hover (rent-estimator parity) */
        #comps-table tbody tr:hover {
            background: rgba(253, 169, 41, 0.15) !important;
        }

        /* Top 3 comps (si el JS les agrega .top-comp-row) */
        #comps-table tbody tr.top-comp-row td {
            background: rgba(19, 65, 96, .60);
            border: #586C75 solid 1px;
            color: #fff;
            font-weight: 600;
        }

        #comps-table tbody tr.top-comp-row td:first-child {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        #comps-table tbody tr.top-comp-row td:last-child {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (AGGRESSIVE): neutraliza look 3D del header
   Fuerza un header plano idéntico al de rent-estimator.
   ========================================================= */

        /* Mata cualquier efecto 3D/shine/depth en el header */
        #comps-table thead,
        #comps-table thead tr,
        #comps-table thead th {
            background: none !important;
            background-image: none !important;
            box-shadow: none !important;
            text-shadow: none !important;
            filter: none !important;
            transform: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        /* Header final (rent-estimator) */
        #comps-table thead {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important;
        }

        #comps-table thead th {
            background: transparent !important;
            color: inherit !important;
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
            border-radius: 0 !important;
            outline: none !important;
            /* tipografía "plana" */
            letter-spacing: normal !important;
            font-weight: 600 !important;
        }

        /* Si algún bloque aplicaba "caps" o tamaños raros al thead */
        #comps-table thead th * {
            text-shadow: none !important;
            filter: none !important;
            transform: none !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 3): tipografía exacta del header
   - Fuerza font-family/pesos para que coincida aunque Typekit cambie.
   ========================================================= */
        #comps-table thead,
        #comps-table thead th {
            font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
            font-weight: 700 !important;
            font-size: 11px !important;
            font-style: normal !important;
            font-variant: normal !important;
            font-stretch: normal !important;
            letter-spacing: normal !important;
            text-transform: none !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 4): tipografía del body (td)
   ========================================================= */
        #comps-table td {
            font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
        }

        #comps-table td {
            font-weight: 400 !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 5): font-size body (td)
   ========================================================= */
        #comps-table td {
            font-size: 12px !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 6): Address column wraps
   - Permite salto de línea en columna Address (2da columna).
   - También desactiva el truncado/ellipsis del tooltip wrapper solo en Address.
   ========================================================= */
        #comps-table td:nth-child(2),
        #comps-table th:nth-child(2) {
            white-space: normal !important;
        }

        #comps-table td:nth-child(2) {
            overflow: visible !important;
            text-overflow: clip !important;
            word-break: break-word !important;
            overflow-wrap: anywhere !important;
            line-height: 1.2 !important;
        }

        /* Si Address usa tooltip-clip, quita el ellipsis SOLO en esa columna */
        #comps-table td:nth-child(2) .tooltip-clip {
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
            display: block !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 7): Address link color is consistent
   - Evita que :visited pinte direcciones diferente (estado dependiente del navegador).
   - Mantiene el look tipo rent-estimator (blanco + underline).
   ========================================================= */
        #comps-table a.zillow-link:link,
        #comps-table a.zillow-link:visited {
            color: #ffffff !important;
            text-decoration: underline !important;
            font-weight: 400 !important;
        }

        #comps-table a.zillow-link:hover {
            color: #FDA929 !important;
            text-decoration: underline !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 8): Row background parity
   - Elimina fondos por tipo (.residential-row/.commercial-row/.land-row)
   - Aplica zebra sutil como rent-estimator
   ========================================================= */

        /* Quita cualquier background aplicado por clases de tipo (o inline) */
        #comps-table tbody tr.comp-row:not(.top-comp-row) td {
            background: transparent !important;
            background-color: transparent !important;
        }

        /* Neutraliza los backgrounds por property-type */
        #comps-table tbody tr.residential-row,
        #comps-table tbody tr.commercial-row,
        #comps-table tbody tr.land-row {
            background: transparent !important;
            background-color: transparent !important;
        }

        /* Zebra (ignora subject/top) */
        #comps-table tbody tr.comp-row:not(.top-comp-row):nth-child(even) {
            background: rgba(255, 255, 255, 0.03) !important;
        }

        #comps-table tbody tr.comp-row:not(.top-comp-row):nth-child(odd) {
            background: rgba(255, 255, 255, 0.00) !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 9): Font + row height parity
   - Fuerza una tipografía más ligera (td 400) y filas un poco más altas.
   ========================================================= */

        /* Fuente uniforme para toda la tabla */
        #comps-table,
        #comps-table th,
        #comps-table td {
            font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
            font-size: 12px !important;
            line-height: 1.25 !important;
            -webkit-font-smoothing: antialiased !important;
            -moz-osx-font-smoothing: grayscale !important;
        }

        /* Header como rent-estimator (bold) */
        #comps-table thead th {
            font-weight: 700 !important;
            padding: 12px 10px !important;
        }

        /* Body: menos grueso y un poco más alto */
        #comps-table tbody td {
            font-weight: 400 !important;
            padding: 12px 10px !important;
        }

        /* Evita que spans/anchors dentro de td suban el peso */
        #comps-table tbody td * {
            font-weight: inherit !important;
        }


        /* =========================================================
   RENT-ESTIMATOR parity (VARIANT 10): Header format + color
   - Replica encabezados estilo rent-estimator (texto dorado, separadores, fondo).
   ========================================================= */

        /* Color/estilo del header */
        #comps-table thead th {
            background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06)), linear-gradient(180deg, rgba(19, 65, 96, .65), rgba(19, 65, 96, .35)) !important;
            color: #ffcc7a !important;
            text-align: center !important;
            font-size: 11px;
            letter-spacing: .4px;
            font-weight: 700;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 4px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .25) !important;

        }

        /* Bordes laterales del header para que se vea como "celdas" */
        #comps-table thead th:first-child {
            border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
            border-top-left-radius: 12px !important;
            border-bottom-left-radius: 12px !important;
        }

        #comps-table thead th:last-child {
            border-top-right-radius: 12px !important;
            border-bottom-right-radius: 12px !important;
            border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
        }

        /* Asegura que el row del header no "aplane" los radios */
        #comps-table thead tr {
            background: transparent !important;
        }

        /* ============================================================
           2C-E — Responsive: tablet & mobile
           All rules below are additive max-width overrides.
           Desktop rules above this block are untouched.
           ============================================================ */

        /* --- 968px: collapse top-content + bottom-content to 1-col --- */
        @media (max-width: 968px) {

            /* Top section (ARV inputs + right panel): stack vertically */
            .top-content {
                grid-template-columns: 1fr;
            }

            /* Bottom section (comps table + map): stack vertically */
            .bottom-content {
                grid-template-columns: 1fr;
            }

            /* Map goes static at tablet — already in block 8, reinforced here */
            .map-container {
                position: static;
                max-height: none;
                overflow: visible;
            }

            /* Map height stepped down on tablet */
            #map {
                height: 380px;
                min-height: 300px;
            }
        }

        /* --- 768px: comps table horizontal scroll + container polish --- */
        @media (max-width: 768px) {

            /* Enable horizontal scroll on the comps table wrapper.
               table-layout: fixed + white-space: nowrap on td means columns
               will not shrink further — scroll is the correct fix here.
               Do NOT change table-layout or remove nowrap — that would break
               column alignment set by JS. */
            .table-wrap {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                border-radius: 12px;
            }

            .table-scroll {
                overflow-x: visible;  /* parent .table-wrap handles the scroll */
            }

            /* Ensure the table itself can exceed viewport width before scrolling */
            #comps-table,
            .comps-table {
                min-width: 600px;   /* keeps columns readable; scroll activates below this */
            }

            /* Reduce comps container padding on phone */
            .comps-table-container {
                padding: 12px;
            }

            /* KPI band container padding */
            .comps-table-container .kpi-band {
                gap: 10px;
            }
        }

        /* --- 480px: map height + header title --- */
        @media (max-width: 480px) {

            /* Map height on small phones */
            #map {
                height: 280px;
                min-height: 240px;
            }

            /* Comps container padding minimal on small phones */
            .comps-table-container {
                padding: 8px;
            }
        }
