.shc-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: #f9f9f9;
}

.shc-header {
    background: linear-gradient(to bottom, #4a4a4a, #2c2c2c);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.shc-header label {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.shc-input-group {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

#shc-zip {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex-grow: 1;
    max-width: 150px;
}

#shc-submit {
    background: linear-gradient(to bottom, #e6a345, #c77d2b);
    color: white;
    border: 1px solid #a8641b;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

#shc-submit:hover {
    background: linear-gradient(to bottom, #f0b050, #d48a35);
}

.shc-results {
    display: flex;
    padding: 20px;
    gap: 20px;
    background: #fff;
}

.shc-left-panel, .shc-right-panel {
    flex: 1;
}

.shc-map-container {
    position: relative;
    border: 1px solid #ccc;
    height: 320px;
    overflow: hidden;
}

.shc-map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 15px;
    border-radius: 3px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    max-width: 80%;
}

.shc-homes-count {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.shc-map-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.2;
}

.shc-map-subtext {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.25;
}

.shc-impact-summary {
    margin-top: 15px;
    color: #333;
    font-size: 16px;
}

.shc-arrow {
    color: #e67e22;
    font-weight: bold;
    font-size: 20px;
}

.shc-right-panel h3 {
    margin-top: 0;
    color: #2c3e50;
    font-family: 'Georgia', serif;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.shc-gauge-section {
    text-align: center;
    margin: 20px 0;
}

.shc-gauge-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Simple Gauge CSS */
.shc-gauge-container {
    position: relative;
    width: 150px;
    height: 75px; /* Half circle */
    margin: 0 auto;
    overflow: hidden;
}

.shc-gauge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #eee; /* Base background */
    position: relative;
    /* Create the gauge segments using conic-gradient if supported, or simpler border-radius approach */
    background: conic-gradient(from 270deg, 
        #f1c40f 0deg 45deg, 
        #e67e22 45deg 90deg, 
        #e74c3c 90deg 135deg, 
        #3498db 135deg 180deg,
        transparent 180deg
    );
    /* transform: rotate(-90deg); Removed because conic-gradient handles the start angle */
}

.shc-gauge-fill {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 4px;
    height: 60px;
    background: #333;
    transform-origin: bottom center;
    transform: rotate(45deg); /* Default */
    z-index: 3;
    transition: transform 1s ease-out;
}

/* Cover the bottom half to make it a semi-circle */
.shc-gauge-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
}

/* The needle or cover */
.shc-gauge-cover {
    position: absolute;
    top: 20px; /* Thickness of gauge */
    left: 20px;
    width: 110px;
    height: 110px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    z-index: 2;
    transform: rotate(90deg); /* Counteract parent rotation */
}

.shc-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shc-stats-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.shc-stats-list li::before {
    content: '•';
    color: #e67e22;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.shc-az-total {
    margin-top: 12px;
    color: #555;
    font-size: 13px;
    line-height: 1.3;
}

/* New Recent Activity Widget Styles */
.shc-recent-widget {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
    background: #fff;
    padding: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.shc-widget-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    padding: 15px 20px;
    background-color: #fff;
}

.shc-widget-subtext {
    margin: 0;
    padding: 0 20px 15px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 2px solid #ccc;
}

#shc-activity-list {
    padding: 0;
}

.shc-activity-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    cursor: pointer;
}

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

.shc-activity-item:hover {
    background-color: #f5f5f5;
}

.shc-activity-arrow {
    color: #e67e22;
    font-size: 12px;
    margin-top: 5px;
}

.shc-activity-content {
    flex-grow: 1;
}

.shc-activity-header {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.shc-activity-desc {
    color: #555;
    font-size: 14px;
}

.shc-placeholder {
    padding: 20px;
    color: #888;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .shc-results {
        flex-direction: column;
    }
    .shc-header {
        flex-direction: column;
        align-items: stretch;
    }
    .shc-input-group {
        width: 100%;
    }
    #shc-zip {
        width: 100%;
    }
}
