



@media (max-width: 1024px) {
    .property-content-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem;
    }

    .property-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .agent-contact-card {
        box-shadow: none;
    }

    .quick-info-card {
        display: none;
    }

    .sidebar-action-card {
        display: none;
    }

    .market-filters .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-section {
        padding: 0 1rem;
    }

    .property-title-bar {
        padding: 0.75rem 1rem;
    }

    .page-breadcrumb {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .property-details-page {
        padding-top: 60px;
    }

    .property-title-bar {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .property-title-left h1 {
        font-size: 1.125rem;
    }

    .property-title-left .property-location {
        font-size: 0.8125rem;
    }

    .property-title-right {
        gap: 0.5rem;
    }

    .btn-text-icon {
        font-size: 0.8125rem;
    }

    .gallery-section {
        padding: 0;
        max-width: 100vw;
        width: 100%;
    }

    .property-content-grid {
        padding: 0 0.75rem 2rem;
        max-width: 100vw;
    }

    .gallery-bento {
        display: block;
        height: auto;
        border-radius: 0;
        width: 100%;
    }

    .gallery-bento-main {
        width: 100%;
        height: 56vw;
        min-height: 220px;
        max-height: 320px;
        border-radius: 0;
    }

    .gallery-bento-side {
        display: none;
    }

    .gallery-bento-thumb:first-child {
        border-radius: 0 !important;
    }

    .gallery-bento-thumb:last-child {
        border-radius: 0 !important;
    }

    .gallery-bento-thumb:nth-child(2)::after,
    .gallery-bento-thumb:nth-child(4)::after {
        display: none !important;
    }


    .gallery-actions {
        top: 0.75rem;
        right: 0.75rem;
    }

    .gallery-actions .btn-action {
        width: 36px;
        height: 36px;
    }

    .gallery-actions .btn-action svg {
        width: 16px;
        height: 16px;
    }

    .gallery-counter {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }


    .property-header-inline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .property-header-main h1 {
        font-size: 1.25rem;
    }

    .property-location {
        font-size: 0.875rem;
    }

    .property-header-section {
        flex-direction: column;
        gap: 1rem;
    }

    .property-header-actions {
        width: 100%;
    }

    .property-price-box {
        text-align: left;
    }

    .price-value {
        font-size: 1.375rem;
    }

    .property-badges {
        flex-wrap: wrap;
    }


    .quick-stats-inline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .stat-item {
        min-width: 0;
        max-width: 100%;
        aspect-ratio: auto;
        padding: 0.75rem 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-item svg {
        width: 22px;
        height: 22px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .quick-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }


    .content-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .content-section h2 {
        font-size: 1rem;
    }


    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .feature-item {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }


    .property-details-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        padding: 0.75rem 0.5rem;
    }

    .detail-label {
        font-size: 0.75rem;
    }

    .detail-value {
        font-size: 0.8125rem;
    }


    .map-container {
        height: 250px;
    }

    #detail-property-map {
        height: 250px !important;
        border-radius: 16px !important;
    }


    .walkscore-scores {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .walkscore-card {
        padding: 0.75rem;
    }

    .walkscore-map-preview {
        height: 200px;
        border-radius: 16px;
    }


    .school-list {
        gap: 0.5rem;
    }


    .mortgage-calculator {
        grid-template-columns: 1fr;
    }

    .mortgage-inputs {
        gap: 0.75rem;
    }

    .amortization-table th,
    .amortization-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .scenario-chips {
        flex-direction: column;
    }

    .scenario-compare-table th,
    .scenario-compare-table td {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }


    .comparables-grid {
        grid-template-columns: 1fr;
    }

    .comparable-stat-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }


    .cma-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cma-table {
        min-width: 500px;
    }

    .cma-chart-placeholder {
        height: 200px;
        border-radius: 16px;
    }


    .neighborhood-stats {
        grid-template-columns: 1fr;
    }

    .neighborhood-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
        border-radius: 16px;
    }

    .demo-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .demo-value {
        font-size: 1.125rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .section-container {
        padding: 0 0.75rem;
    }

    .similar-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }


    .price-history-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .property-sidebar {
        padding-right: 0;
    }

    .agent-contact-card {
        border-radius: 12px;
    }

    .agent-item .agent-avatar {
        width: 48px;
        height: 48px;
    }

    .contact-form .input-row {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    .btn-contact-agent {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    .mobile-agent-btn {
        display: block;
    }

    .properties-content.with-map {
        grid-template-columns: 1fr;
    }

    .properties-content.with-map .map-container {
        height: 300px;
        position: static;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-hero h1,
    .agents-hero h1 {
        font-size: 1.75rem;
    }

    .market-filters .filter-row {
        grid-template-columns: 1fr;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card .agent-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 0;
    }

    .gallery-bento-main {
        height: 200px;
        border-radius: 12px;
    }

    .property-content-grid {
        padding: 0 0.5rem 2rem;
        gap: 1rem;
    }

    .property-main-content {
        gap: 1rem;
    }

    .quick-stats-inline {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }

    .stat-item {
        padding: 0.5rem;
        border-radius: 10px;
        min-width: 0;
    }

    .stat-item svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 0.9375rem;
    }

    .content-section {
        padding: 0.875rem;
        border-radius: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .walkscore-scores {
        grid-template-columns: 1fr;
    }

    .cma-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cma-table {
        min-width: 450px;
    }

    .gallery-section {
        padding: 0 0.5rem;
    }

    .page-breadcrumb {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}



.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-body .warning-text {
    color: #dc2626;
    font-size: 0.875rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: var(--radius-md);
    border-left: 3px solid #dc2626;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.modal-footer .btn-secondary {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.modal-footer .btn-secondary:hover {
    background: var(--bg-light);
}

.modal-footer .btn-danger {
    padding: 0.625rem 1.25rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
}

.modal-footer .btn-danger:hover {
    background: #b91c1c;
}

.modal-footer .btn-danger:disabled,
.modal-footer .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-footer .btn-primary {
    padding: 0.625rem 1.25rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
}

.modal-footer .btn-primary:hover {
    opacity: 0.9;
}

.modal-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.modal-body .form-group select,
.modal-body .form-group input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}


.feature-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.feature-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-option:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.feature-option.selected {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.1);
}

.feature-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 1rem;
    accent-color: var(--primary-blue);
}

.feature-option .option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.feature-option .duration {
    font-weight: 600;
    color: var(--text-dark);
}

.feature-option .price {
    font-weight: 700;
    color: var(--primary-blue);
}

.feature-option .badge-save {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #059669;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.bulk-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.modal-header svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}



.neighborhood-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.neighborhood-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.neighborhood-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.neighborhood-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.neighborhood-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}


.neighborhood-page .search-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.neighborhood-page .search-form .search-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.neighborhood-page .search-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.neighborhood-page .search-form .form-group.flex-3 {
    flex: 3;
}

.neighborhood-page .search-form .form-group.btn-group {
    flex-shrink: 0;
}

.neighborhood-page .search-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.neighborhood-page .search-form input,
.neighborhood-page .search-form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.neighborhood-page .search-form input:focus,
.neighborhood-page .search-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.neighborhood-page .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}


.neighborhood-page .error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--danger);
    margin-bottom: 1.5rem;
}


.overview-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.overview-header .location-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.overview-header .location-info p {
    color: var(--text-gray);
}

.safety-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    min-width: 80px;
}

.safety-badge .grade {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.safety-badge .label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.safety-badge.safety-a {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.safety-badge.safety-b {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.safety-badge.safety-c {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
}

.safety-badge.safety-d {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.safety-badge.safety-f {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.overview-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.overview-stats .stat-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.overview-stats .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-stats .stat-icon.walk { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.overview-stats .stat-icon.transit { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.overview-stats .stat-icon.bike { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.overview-stats .stat-icon.price { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.overview-stats .stat-icon.rent { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.overview-stats .stat-icon.population { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.overview-stats .stat-content {
    display: flex;
    flex-direction: column;
}

.overview-stats .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.overview-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.highlights {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.highlights h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
}


.neighborhood-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.neighborhood-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.neighborhood-tabs .tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.neighborhood-tabs .tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


.tab-content {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    min-height: 400px;
}

.tab-content .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.tab-content .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}


.schools-content .schools-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.schools-content .summary-item {
    text-align: center;
}

.schools-content .summary-item .count {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.schools-content .summary-item .label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.schools-content .summary-item.highlight .count {
    color: var(--primary);
}

.schools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.school-card .school-rating {
    flex-shrink: 0;
}

.school-card .rating {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.school-card .rating.rating-excellent { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.school-card .rating.rating-good { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.school-card .rating.rating-average { background: rgba(251, 191, 36, 0.15); color: #f59e0b; }
.school-card .rating.rating-poor { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.school-card .rating.no-rating { background: var(--border-color); color: var(--text-gray); font-size: 0.875rem; }

.school-card .school-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.school-card .school-type {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.school-card .school-district {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.school-card .school-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.school-card .school-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


.crime-content .crime-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.crime-content .crime-grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.crime-content .crime-grade .grade {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.crime-content .crime-grade .label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.crime-content .crime-grade.grade-a { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.crime-content .crime-grade.grade-b { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.crime-content .crime-grade.grade-c { background: rgba(251, 191, 36, 0.15); color: #f59e0b; }
.crime-content .crime-grade.grade-d { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.crime-content .crime-grade.grade-f { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.crime-content .crime-indices {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.crime-content .index-item {
    display: flex;
    flex-direction: column;
}

.crime-content .index-value {
    font-size: 2rem;
    font-weight: 700;
}

.crime-content .index-value.good { color: #10b981; }
.crime-content .index-value.bad { color: #ef4444; }

.crime-content .index-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.crime-content .index-note {
    font-size: 0.75rem;
    color: var(--text-light);
}

.crime-content .crime-comparison {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.crime-content .crime-categories h4,
.crime-content .crime-trends h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.crime-content .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.crime-content .category-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.crime-content .category-name {
    font-weight: 500;
}

.crime-content .category-rate {
    color: var(--text-gray);
}

.crime-content .trends-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crime-content .trend-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.crime-content .trend-year {
    font-weight: 600;
    min-width: 50px;
}

.crime-content .trend-count {
    flex: 1;
    color: var(--text-gray);
}

.crime-content .trend-change {
    font-weight: 500;
}

.crime-content .trend-change.positive { color: #10b981; }
.crime-content .trend-change.negative { color: #ef4444; }


.demographics-content .demo-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.demographics-content .demo-stat {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
}

.demographics-content .demo-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.demographics-content .demo-stat .label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.demographics-content .demo-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.demographics-content .demo-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demographics-content .distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demographics-content .bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demographics-content .bar-label {
    min-width: 80px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.demographics-content .bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.demographics-content .bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.demographics-content .bar-fill.education {
    background: #10b981;
}

.demographics-content .bar-value {
    min-width: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

.demographics-content .indicators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.demographics-content .indicator {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.demographics-content .indicator-label {
    color: var(--text-gray);
}

.demographics-content .indicator-value {
    font-weight: 600;
}


.pois-content .pois-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pois-content .filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.pois-content .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pois-content .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pois-content .pois-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pois-content .poi-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.pois-content .poi-icon {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.pois-content .poi-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pois-content .poi-category {
    font-size: 0.8125rem;
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.pois-content .poi-address {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.pois-content .poi-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
}

.pois-content .poi-meta .distance {
    color: var(--text-light);
}

.pois-content .poi-meta .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
}

.pois-content .no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-gray);
}


.walkscore-content .scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.walkscore-content .score-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.walkscore-content .score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) calc(var(--score) * 3.6deg),
        var(--border-color) calc(var(--score) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.walkscore-content .score-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.walkscore-content .score-value {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 700;
}

.walkscore-content .score-card.walk .score-circle { --primary: #10b981; }
.walkscore-content .score-card.transit .score-circle { --primary: #3b82f6; }
.walkscore-content .score-card.bike .score-circle { --primary: #a855f7; }

.walkscore-content .score-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.walkscore-content .score-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.walkscore-content .nearby-amenities h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.walkscore-content .amenities-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.walkscore-content .amenity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.walkscore-content .amenity-category {
    min-width: 100px;
    font-weight: 500;
    color: var(--primary);
}

.walkscore-content .amenity-name {
    flex: 1;
}

.walkscore-content .amenity-distance {
    color: var(--text-gray);
}


.initial-state {
    padding: 2rem 0;
}

.initial-state .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.initial-state .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.initial-state .feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.initial-state .feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 1rem;
}

.initial-state .feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.initial-state .feature-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}


@media (max-width: 1024px) {
    .overview-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .demographics-content .demo-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .demographics-content .demo-sections {
        grid-template-columns: 1fr;
    }

    .walkscore-content .scores-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .initial-state .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .neighborhood-page .search-form .search-row {
        flex-direction: column;
    }

    .neighborhood-page .search-form .form-group.flex-3 {
        flex: 1;
        width: 100%;
    }

    .overview-header {
        flex-direction: column;
        gap: 1rem;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .neighborhood-tabs {
        flex-wrap: nowrap;
    }

    .crime-content .crime-overview {
        flex-direction: column;
        text-align: center;
    }

    .crime-content .crime-indices {
        justify-content: center;
    }

    .crime-content .categories-grid {
        grid-template-columns: 1fr;
    }

    .pois-content .pois-list {
        grid-template-columns: 1fr;
    }

    .walkscore-content .scores-grid {
        grid-template-columns: 1fr;
    }

    .initial-state .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .overview-stats {
        grid-template-columns: 1fr;
    }

    .schools-content .schools-summary {
        flex-wrap: wrap;
        justify-content: center;
    }

    .demographics-content .demo-overview {
        grid-template-columns: 1fr;
    }
}



[data-theme="dark"] .property-details-page {
    background: #111827;
}

[data-theme="dark"] .page-breadcrumb {
    color: #94a3b8;
}

[data-theme="dark"] .page-breadcrumb a {
    color: #94a3b8;
}

[data-theme="dark"] .page-breadcrumb a:hover {
    color: #60a5fa;
}


[data-theme="dark"] .property-info-card,
[data-theme="dark"] .detail-section,
[data-theme="dark"] .info-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .sidebar-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .property-title,
[data-theme="dark"] .detail-section h2,
[data-theme="dark"] .detail-section h3,
[data-theme="dark"] .info-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .property-address,
[data-theme="dark"] .property-meta,
[data-theme="dark"] .detail-text {
    color: #94a3b8;
}

[data-theme="dark"] .property-price {
    color: #e2e8f0;
}


[data-theme="dark"] .property-title-bar {
    background: #111827;
}

[data-theme="dark"] .property-title-left h1 {
    color: #e2e8f0;
}

[data-theme="dark"] .property-title-left .property-location {
    color: #94a3b8;
}

[data-theme="dark"] .btn-text-icon {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-text-icon:hover {
    color: #60a5fa;
}

[data-theme="dark"] .btn-text-icon.active {
    color: #f87171;
}


[data-theme="dark"] .contact-form-heading {
    color: #e2e8f0;
    border-top-color: #334155;
}

[data-theme="dark"] .agent-bio {
    color: #94a3b8;
}


[data-theme="dark"] .sidebar-action-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .sidebar-action-card h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .sidebar-action-card p {
    color: #94a3b8;
}


[data-theme="dark"] .search-page,
[data-theme="dark"] .search-results-page {
    background: #111827;
}

[data-theme="dark"] .search-filters {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .filter-label {
    color: #94a3b8;
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}


[data-theme="dark"] .market-page {
    background: #111827;
}

[data-theme="dark"] .market-filters .filter-card {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .market-filters .filter-group label {
    color: #94a3b8;
}

[data-theme="dark"] .market-filters .filter-group select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .chart-section {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .chart-section .chart-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .chart-container {
    background: #0f172a;
}

[data-theme="dark"] .market-snapshot {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .snapshot-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .snapshot-card {
    background: #0f172a;
}

[data-theme="dark"] .snapshot-label {
    color: #94a3b8;
}

[data-theme="dark"] .snapshot-value {
    color: #f1f5f9;
}

[data-theme="dark"] .market-sidebar .contact-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .market-sidebar .contact-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .market-sidebar .contact-form input,
[data-theme="dark"] .market-sidebar .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .report-btn.outline {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] .report-btn.outline:hover {
    background: #334155;
}

[data-theme="dark"] .btn-option {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .chart-placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .chart-placeholder svg {
    stroke: #64748b;
}

[data-theme="dark"] .market-card,
[data-theme="dark"] .insight-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .market-card h3,
[data-theme="dark"] .insight-card h3 {
    color: #e2e8f0;
}


[data-theme="dark"] .agents-page {
    background: #111827;
}

[data-theme="dark"] .agent-profile-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .agent-profile-name {
    color: #e2e8f0;
}

[data-theme="dark"] .agent-profile-role,
[data-theme="dark"] .agent-profile-bio {
    color: #94a3b8;
}


[data-theme="dark"] .page-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .page-header h1 {
    color: #e2e8f0;
}

[data-theme="dark"] .page-header p {
    color: #94a3b8;
}


[data-theme="dark"] .tab-nav {
    border-bottom-color: #334155;
}

[data-theme="dark"] .tab-btn {
    color: #94a3b8;
}

[data-theme="dark"] .tab-btn:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .tab-btn.active {
    color: #e2e8f0;
    border-bottom-color: var(--primary-gold, #d4a853);
}


[data-theme="dark"] .badge,
[data-theme="dark"] .tag {
    background: #334155;
    color: #e2e8f0;
}


[data-theme="dark"] .timeline-section {
    background: #111827;
}

[data-theme="dark"] .timeline-section h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .timeline-item {
    border-left-color: #334155;
}

[data-theme="dark"] .timeline-item::before {
    background: #4a7ab5;
    border-color: #1e293b;
}




[data-theme="dark"] .agent-profile-page {
    background: #0f172a;
}

[data-theme="dark"] .profile-identity-wrapper {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .profile-name {
    color: #e2e8f0;
}

[data-theme="dark"] .profile-agency {
    color: #94a3b8;
}

[data-theme="dark"] .rating-num {
    color: #e2e8f0;
}

[data-theme="dark"] .rating-count {
    color: #64748b;
}

[data-theme="dark"] .profile-stat-bar {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stat-item {
    border-right-color: #334155;
}

[data-theme="dark"] .stat-val {
    color: #e2e8f0;
}

[data-theme="dark"] .stat-lbl {
    color: #64748b;
}

[data-theme="dark"] .profile-layout {
    background: #0f172a;
}

[data-theme="dark"] .profile-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .profile-card .card-title {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

[data-theme="dark"] .profile-card p,
[data-theme="dark"] .profile-card span,
[data-theme="dark"] .profile-card li {
    color: #94a3b8;
}

[data-theme="dark"] .profile-card h3,
[data-theme="dark"] .profile-card h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .profile-tab-nav {
    border-bottom-color: #334155;
    background: #0f172a;
}

[data-theme="dark"] .profile-tab-btn {
    color: #64748b;
}

[data-theme="dark"] .profile-tab-btn:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .profile-tab-btn.active {
    color: #e2e8f0;
    border-bottom-color: #4a7ab5;
}

[data-theme="dark"] .btn-schedule-showing {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .btn-schedule-showing:hover {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .btn-share-agent {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .btn-share-agent:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .share-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .share-option {
    color: #cbd5e1;
}

[data-theme="dark"] .share-option:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .overview-grid .overview-item label {
    color: #64748b;
}

[data-theme="dark"] .overview-grid .overview-item span {
    color: #e2e8f0;
}

[data-theme="dark"] .review-card {
    background: #253347;
    border-color: #334155;
}

[data-theme="dark"] .review-text {
    color: #cbd5e1;
}

[data-theme="dark"] .reviewer-name {
    color: #e2e8f0;
}

[data-theme="dark"] .review-date {
    color: #64748b;
}


[data-theme="dark"] .filters-section {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .filter-group label {
    color: #94a3b8;
}

[data-theme="dark"] .filters-row.extended {
    border-top-color: #334155;
}


[data-theme="dark"] .property-details-page {
    background: #111827;
}

[data-theme="dark"] .content-section {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .content-section h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .walkscore-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stats-tab {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .stats-tab.active {
    background: #334155;
}

[data-theme="dark"] .gallery-nav:hover {
    background: #334155;
}

[data-theme="dark"] .gallery-actions .btn-action {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .gallery-actions .btn-action:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .agent-contact-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
    background: #0f172a;
}



.pricing-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg-primary, #fff);
}

.pricing-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 0.75rem;
}

.pricing-hero > p {
    color: var(--text-secondary, #64748b);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.pricing-page .billing-toggle {
    display: inline-flex;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.pricing-page .billing-toggle button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-secondary, #64748b);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-page .billing-toggle button.active {
    background: white;
    color: var(--text-primary, #1a1a2e);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pricing-page .save-badge {
    font-size: 0.7rem;
    background: var(--color-primary, #d4a03c);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.pricing-page .loading-state,
.pricing-page .empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary, #64748b);
}

.pricing-page .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light, #e2e8f0);
    border-top-color: var(--color-primary, #d4a03c);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.pricing-page .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.pricing-page .plan-card {
    background: white;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-page .plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pricing-page .plan-card.popular {
    border-color: var(--color-primary, #d4a03c);
    box-shadow: 0 4px 20px rgba(212,160,60,0.15);
}

.pricing-page .popular-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary, #d4a03c);
    color: white;
    padding: 4px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-page .plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-top: 0.5rem;
}

.pricing-page .plan-desc {
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.5;
}

.pricing-page .plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 0.25rem;
}

.pricing-page .plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
}

.pricing-page .plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    line-height: 1;
}

.pricing-page .plan-price .period {
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}

.pricing-page .annual-note {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 1rem;
}

.pricing-page .plan-limits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light, #e2e8f0);
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    margin: 1rem 0;
}

.pricing-page .plan-limits .limit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
}

.pricing-page .plan-limits .limit svg {
    color: var(--color-primary, #d4a03c);
    flex-shrink: 0;
}

.pricing-page .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-page .features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
    line-height: 1.4;
}

.pricing-page .features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-page .cta-btn {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 10px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary, #1a1a2e);
    transition: all 0.2s;
}

.pricing-page .cta-btn:hover {
    border-color: var(--color-primary, #d4a03c);
    color: var(--color-primary, #d4a03c);
}

.pricing-page .cta-btn.primary {
    background: var(--color-primary, #d4a03c);
    border-color: var(--color-primary, #d4a03c);
    color: white;
}

.pricing-page .cta-btn.primary:hover {
    background: var(--color-primary-dark, #b8862e);
    border-color: var(--color-primary-dark, #b8862e);
}


.pricing-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 2rem;
}

.pricing-faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-faq .faq-item {
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
}

.pricing-faq .faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 0.5rem;
}

.pricing-faq .faq-item p {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
    margin: 0;
}


[data-theme="dark"] .pricing-page .plan-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .pricing-page .plan-card.popular {
    border-color: var(--color-primary, #d4a03c);
}

[data-theme="dark"] .pricing-faq .faq-item {
    background: #1e293b;
}


@media (max-width: 768px) {
    .pricing-page .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}




.contact-card-new {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.contact-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.contact-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #395A87, #083169);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-agent-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.contact-agent-agency {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.contact-info-row:hover {
    background: #f9fafb;
}

.contact-info-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-info-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-info-val {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-send-msg {
    width: 100%;
    padding: 0.75rem;
    background: #083169;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    transition: background 0.15s;
}

.btn-send-msg:hover {
    background: #062756;
}

.btn-live-chat {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: #083169;
    border: 1.5px solid #083169;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s;
}

.btn-live-chat:hover {
    background: #083169;
    color: white;
}


[data-theme="dark"] .contact-card-new {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-card-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .contact-agent-name {
    color: #f1f5f9;
}

[data-theme="dark"] .contact-agent-agency {
    color: #94a3b8;
}

[data-theme="dark"] .contact-info-row:hover {
    background: #273549;
}

[data-theme="dark"] .contact-info-icon-wrap {
    background: #1a3352;
}

[data-theme="dark"] .contact-info-val {
    color: #cbd5e1;
}

[data-theme="dark"] .contact-info-label {
    color: #64748b;
}

[data-theme="dark"] .btn-live-chat {
    color: #93c5fd;
    border-color: #3b82f6;
}

[data-theme="dark"] .btn-live-chat:hover {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}
