.tp-hero-area {
    min-height: 520px;
}

.tp-hero-search {
    border-radius: 30px;
}

.tp-hero-search .form-select,
.tp-hero-search .form-control {
    min-height: 48px;
}

.trend-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.trend-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12);
}

.trend-chart-card {
    min-height: 350px;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.recent-searches-row {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.recent-searches-row .card {
    min-width: 280px;
    max-width: 320px;
}

.trend-avatar {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    background: #f8fafc;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.trend-location-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trend-location-card .location-details {
    flex-grow: 1;
}

.trend-card-chart {
    min-height: 150px;
}

.trend-chart-dark-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(199, 211, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.trend-chart-dark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(199, 211, 50, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.trend-chart-dark-card .card-body {
    position: relative;
    z-index: 1;
}

.trending-property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.trending-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.trending-property-img {
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    object-fit: cover;
}

.trending-prop-badge {
    background: #2563eb;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trending-prop-search-badge {
    background: #10b981;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
}

.trending-prop-details {
    font-size: 0.9rem;
    color: #6b7280;
}

.trending-prop-title {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.top-trending-card {
    border-radius: 1.05rem;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.top-trending-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.top-trending-card-img {
    height: 190px;
    object-fit: cover;
    width: 100%;
    display: block;
}

.top-trending-card-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.top-trending-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.top-trending-card-meta {
    font-size: 0.9rem;
    color: #6b7280;
}

.top-trending-card-details {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.65;
}

.filters button {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.filters button.active {
    background: #b4e717;
    color: #000;
}

.insight-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(140, 183, 18, 0.1);
    border: 1px solid rgba(140, 183, 18, 0.28);
    font-size: 14px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#chart {
    transition: opacity 0.3s ease;
}

.insight-window-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #6d9410;
    font-weight: 600;
}

.bar-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.bar-item {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bar-meta {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.bar-track::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.05) 10px,
            transparent 10px,
            transparent 20px);
    pointer-events: none;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c4ee18, #8cb712);
    transition: width 1s ease;
}

@media (max-width: 768px) {
    .bar-wrap {
        grid-template-columns: 1fr;
    }
}

.phase-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.phase-scroll::-webkit-scrollbar {
    display: none;
}

.phase-scroll button {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #c4ee18;
    background: #c4ee18;
    color: #000000;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    scroll-snap-align: start;
    transform-origin: center center;
    will-change: transform, opacity;
}

.phase-scroll button:hover {
    background: #b4de10;
    color: #000000;
    border-color: #b4de10;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(196, 238, 24, 0.35);
}

.phase-scroll button:active {
    transform: translateY(0) scale(0.96);
}

.phase-scroll button.active {
    background: #9fc914;
    color: #000000;
    border-color: #9fc914;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(196, 238, 24, 0.35);
}

.phase-scroll button .phase-search-count {
    font-weight: 700;
    color: #000;
    display: inline-block;
    transition: transform 0.25s ease;
}

.phase-scroll button:hover .phase-search-count,
.phase-scroll button.active .phase-search-count {
    transform: scale(1.08);
}

.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.view-toggle button {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-toggle button.active {
    background: #b4e717;
    color: #000;
    border-color: #b4e717;
}

.view-toggle button:hover {
    background: #f1f5f9;
}

.city-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.city-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 5px 16px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.city-scroll::-webkit-scrollbar {
    display: none;
}

.city-scroll button {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 13px;
    scroll-snap-align: start;
    transition: 0.3s;
}

.city-scroll button.active {
    background: #b4e717;
    color: #000;
    transform: scale(1.05);
}

.btn-view-pill:hover {
    background-color: #b4e717 !important;
}

.active > .page-link,
.page-link.active {
    background-color: #b4e717 !important;
    border-color: #b4e717 !important;
    color: #000 !important;
}

.page-link:hover {
    background-color: #ffffff !important;
}

#trendingPropertiesTable_wrapper .dt-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#trendingPropertiesTable_wrapper .dt-bottom-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#trendingPropertiesTable_wrapper .dataTables_length,
#trendingPropertiesTable_wrapper .dataTables_filter,
#trendingPropertiesTable_wrapper .dataTables_info,
#trendingPropertiesTable_wrapper .dataTables_paginate {
    float: none !important;
    white-space: nowrap;
}

#trendingPropertiesTable_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem;
    margin: 0 !important;
    white-space: nowrap;
}

#trendingPropertiesTable_wrapper .dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem;
    margin: 0 !important;
    white-space: nowrap;
}

#trendingPropertiesTable_wrapper .dataTables_filter input {
    width: 180px;
    min-width: 80px;
}

#trendingPropertiesTable_wrapper .dataTables_paginate {
    margin: 0 !important;
}

#trendingPropertiesTable_wrapper .dataTables_info {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 480px) {
    #trendingPropertiesTable_wrapper .dataTables_filter input {
        width: 110px;
    }

    #trendingPropertiesTable_wrapper .dataTables_length select {
        width: 52px;
    }
}

#trendingPropertiesTable_toolbar .dt-top-bar,
#trendingPropertiesTable_bottombar .dt-bottom-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
