/* dirmelk/amlak/chart/price-chart.css */

.price-chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(13, 59, 102, 0.1);
    overflow: hidden;
}

.price-chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #0D3B66;
}

.price-chart-header i {
    font-size: 24px;
}

.price-chart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chart-city-name {
    background: #0D3B66;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 0px;
}

.chart-range-wrapper {
    padding: 0 15px;
    overflow: visible;
    position: relative;
}

.chart-range-bar {
    position: relative;
    height: 60px;
    background: linear-gradient(to left, #E74C3C 0%, #F4A261 50%, #27AE60 100%);
    border-radius: 30px;
    margin: 45px 0 0 0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #0D3B66;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: pulse 2s infinite;
    transform-origin: center center;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.chart-marker-label {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    background: #F4A261;
    color: #2C2C2C;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600;
    pointer-events: none;
    border: 2px solid white;
}

.chart-scale {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #2C2C2C;
    margin-top: 6px;
    padding: 0 15px;
}

.chart-scale span {
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.chart-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.chart-info-item {
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid #e5e5e5;
    flex: 1 1 auto;
}

.chart-info-item strong {
    color: #0D3B66;
}

/* responsive */

@media (max-width: 768px) {
    .price-chart-container {
        padding: 15px;
        margin: 15px 0;
    }

    .chart-range-wrapper {
        padding: 0 10px;
    }

    .chart-range-bar {
        height: 45px;
        margin: 40px 0 20px 0;
    }

    .chart-marker {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .chart-marker-label {
        font-size: 10px;
        padding: 4px 6px;
        top: -32px;
    }

    .chart-scale {
        font-size: 11px;
        padding: 0 10px;
    }

    .chart-scale span {
        padding: 3px 6px;
    }

    .chart-info-box {
        gap: 8px;
    }

    .chart-info-item {
        font-size: 12px;
        padding: 8px 10px;
        flex: 1 1 100%;
    }

    .price-chart-header h3 {
        font-size: 16px;
    }

    .price-chart-header i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .chart-marker-label {
        font-size: 11px;
        padding: 3px 5px;
    }
}

#chart-current-label:before{
    content : "برای این ملک : ";
}

#chart-min{
    order: 2;
}

#chart-max{
    order: 1;
}