.hmt-header {
    text-align: center;
    margin-bottom: 30px;
}

.hmt-title {
    font-family: "Poppins", Poppins;
    font-size: 50px;
    font-weight: 700;
    line-height: 65px;
    color: var( --e-global-color-98c7a4c );
    margin-top: 0;
}

.hmt-subtitle {
    text-align: center;
    font-family: "Poppins", Poppins;
    font-weight: 400;
    color: #000000;
    margin: 0;
}

.hmt-description {
    background: #F7F7F7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.hmt-description p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    font-family: "Poppins", Poppins;
}

.hmt-home-type-select,
#hmt-metrics-mobile-select {
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #D5D8DC;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    max-width: 250px;
    transition: all ease 0.3s;
}

.hmt-home-type-select:focus,
#hmt-metrics-mobile-select:focus {
    outline: none;
    border-color: #000;
}

.hmt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 32px;
}

.hmt-metric-card {
    background: white;
    padding: 16px;
    cursor: pointer;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 4px solid transparent;
    border-bottom: 1px solid #D5D8DC;
}

.hmt-metric-card.active {
    border-left: 1px solid #D5D8DC;
    border-right: 1px solid #D5D8DC;
    border-top: 4px solid #000;
    border-bottom: 1px solid transparent;
}

.hmt-metric-label {
    font-size: 14px;
    color: var( --e-global-color-d94d28a );
    margin-bottom: 5px;
    font-weight: 500;
    font-family: 'Poppins';
}

.hmt-metric-card.active .hmt-metric-label {
    color: #000;
}

.hmt-metric-value {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    margin-bottom: 3px;
    font-family: 'Poppins';
}

.hmt-metric-change {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    font-family: 'Poppins';
}

.hmt-metric-change.positive span {
    color: #75b945;
}

.hmt-metric-change.negative span {
    color: #fd3316;
}

.hmt-chart-section {
    margin-bottom: 32px;
}

.hmt-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.hmt-chart-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins';
}

.hmt-chart-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hmt-chart-filters {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hmt-filter-btn,
.hmt-filter-btn:hover {
    padding: 5px !important;
    background-color: transparent !important;
    font-family: 'Poppins' !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #666 !important;
    transition: all 0.3s !important;
}

.hmt-filter-btn.active {
    border-color: #000 !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.hmt-comparison-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.hmt-comparison-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: none;
}

.hmt-chart-wrapper {
    position: relative;
    height: 400px;
    margin-top: 20px;
}



.checkbox-image {
    content: url('https://rivcohomebuyers.com/wp-content/uploads/2025/11/svgexport-49.svg');
    display: inline-block;
    width: 18px;
    vertical-align: middle;
}


#hmt-show-us-comparison:not(:checked) ~ .checkbox-image {
    content: url('https://rivcohomebuyers.com/wp-content/uploads/2025/11/svgexport-50-1.svg');
}

.hmt-comparison-table {
    overflow-x: auto;
    position: relative;
}

.hmt-comparison-toggle {
    position: absolute;
    right: 15px;
    top: 77%;
}

.hmt-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.hmt-comparison-table th,
.hmt-comparison-table td {
    text-align: left;
    border: none;
    padding: 8px 16px;
    vertical-align: middle;
}

.hmt-comparison-table thead {
    background-color: #F7F7F7;
}

.hmt-comparison-table th {
    background: transparent !important;
    border: none !important;
    font-weight: 400;
    color: #000;
    font-size: 14px;
    font-family: 'Poppins';

}

.hmt-comparison-table td {
    color: #333;
    font-weight: 400;
    color: #000;
    font-size: 14px;
    font-family: 'Poppins';
    padding: 14px 16px;
}

.hmt-comparison-table tr td {
    background-color: transparent !important;
}

.hmt-table-date {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.hmt-location-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 8px;
}

.hmt-location-dot.hmt-us-dot {
    background: #ef4444;
}

.hmt-comparison-table .positive {
    color: #059669;
}

.hmt-comparison-table .negative {
    color: #dc2626;
}


.hmt-metrics-select {
    display: none;
}

@media (max-width: 768px) {
    .hmt-metrics-grid {
        display: none;
    }
    
    .hmt-metrics-select {
        display: block;
    }
    .hmt-home-type-select,
    #hmt-metrics-mobile-select {
        max-width: 100%;
        margin-bottom: 15px;
    }
    .hmt-chart-header {
        gap: 0;
        justify-content: flex-end;
    }
    .hmt-title {
        font-size: 22px;
        line-height: 26px;
    }
    .hmt-comparison-toggle {
        right: 0;
    }
}