/* ============================================
   PAGES CSS - Property Details, Search, Market, Agents
   ============================================ */

/* ============================================
   PROPERTY DETAILS PAGE
   ============================================ */
.property-details-page {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-light);
    position: relative;
}

/* Property Content Wrapper - for sidebar height calculation */
.property-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.page-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.page-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--primary-blue);
}

/* Gallery */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-main {
    position: relative;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.gallery-nav:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.gallery-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}

.gallery-badge.virtual-tour {
    top: 1rem;
    left: 1rem;
    color: var(--primary-blue);
}

.gallery-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumb {
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Header */
.property-header-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.property-header-main h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 1rem;
}

.property-header-actions {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

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

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.price-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-date {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-gray);
}

.btn-action:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-action.active {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

/* Quick Stats */
.quick-stats {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 140px;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-item svg {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Property Content Grid */
.property-content-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    position: relative;
}

.property-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.content-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.description-text {
    color: var(--text-gray);
    line-height: 1.7;
}

.description-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-dark);
}

.feature-item svg {
    color: #059669;
    flex-shrink: 0;
}

/* Property Details Grid (Toronto Market fields) */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Map Container */
.map-container {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.map-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.btn-view-map {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Stats Tabs & Charts */
.stats-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stats-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.stats-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.stats-chart-container,
.price-history-chart {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Price History Table */
.price-history-table {
    margin-top: 1rem;
}

.price-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-history-table th,
.price-history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.price-history-table th {
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-light);
}

.price-history-table .positive { color: #059669; }
.price-history-table .negative { color: #dc2626; }

/* Comparables */
.comparables-filters {
    margin-bottom: 1rem;
}

.comparables-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.comparables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.comparable-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.comparable-card:hover {
    transform: translateY(-2px);
}

.comparable-image {
    position: relative;
    height: 120px;
}

.comparable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparable-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #dc2626;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.comparable-badge.sold { background: #6b7280; }
.comparable-badge.rent { background: #059669; }

.comparable-info {
    padding: 0.75rem;
}

.comparable-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.comparable-price {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.comparable-specs {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Schools */
.schools-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.school-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.school-rating {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), #3d5a80);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

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

.school-info p {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* Mortgage Calculator */
.mortgage-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mortgage-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.input-suffix {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.mortgage-result {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.monthly-payment {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.monthly-payment .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.monthly-payment .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.breakdown-item span:first-child {
    color: var(--text-gray);
}

.breakdown-item span:last-child {
    font-weight: 600;
}

/* Neighborhood Stats */
.neighborhood-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.neighborhood-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.neighborhood-stat .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.neighborhood-stat .stat-change.positive { color: #059669; }
.neighborhood-stat .stat-change.negative { color: #dc2626; }

/* Agent Contact Card (Sidebar) */
.property-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    align-self: start;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.property-sidebar::-webkit-scrollbar {
    width: 6px;
}

.property-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.property-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.property-sidebar::-webkit-scrollbar-thumb:hover {
    background: #c1c1c1;
}

.agent-contact-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.agent-contact-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-contact-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.agent-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
}

.agent-item:hover,
.agent-item.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(8, 49, 105, 0.03) 0%, rgba(8, 49, 105, 0.01) 100%);
    box-shadow: 0 4px 12px rgba(8, 49, 105, 0.1);
    transform: translateY(-2px);
}

.agent-item .agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-item .agent-info {
    flex: 1;
}

.agent-item .agent-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.agent-item .agent-info p {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.agent-item .agent-languages {
    font-style: italic;
    color: var(--text-gray);
    font-size: 0.75rem;
}

.agent-item .view-profile {
    font-size: 0.8125rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}

.agent-item .view-profile:hover {
    text-decoration: underline;
}

.agent-item .agent-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
}

.agent-item .agent-rating .rating-text {
    color: var(--text-gray);
    margin-left: 0.25rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #fafbfc;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(8, 49, 105, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-contact-agent {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0a3d7a 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(8, 49, 105, 0.3);
    margin-top: 0.5rem;
}

.btn-contact-agent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 49, 105, 0.4);
}

.btn-contact-agent:active {
    transform: translateY(0);
}

.btn-contact-agent:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.contact-options span {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.btn-contact-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.btn-contact-option:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(8, 49, 105, 0.02);
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-success svg {
    color: #059669;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error svg {
    color: #dc2626;
}

.mls-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-gray);
    display: flex;
    gap: 0.5rem;
}

.mls-info .mls-label {
    font-weight: 600;
}

.mls-info .mls-number {
    color: var(--text-dark);
}

/* Quick Info Card */
.quick-info-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.quick-info-item svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.quick-info-item > div {
    display: flex;
    flex-direction: column;
}

.quick-info-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.quick-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Button Loading Spinner */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-contact-agent span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile Agent Button */
.mobile-agent-btn {
    display: none;
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 95;
}

/* Loading & Error States */
.loading-container,
.error-container {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-container h2 {
    margin-bottom: 1rem;
}

.error-container p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* ============================================
   PROPERTIES SEARCH PAGE
   ============================================ */
.properties-page {
    padding-top: 60px;
    min-height: 100vh;
    background: var(--bg-light);
}

.search-header {
    background: var(--primary-blue);
    padding: 2rem;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 0 1rem;
}

.search-input-wrapper svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    padding: 0.875rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.filters-section {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.filters-row {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters-row.extended {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 140px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
}

.filter-group select,
.filter-group input {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: white;
}

.btn-more-filters,
.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-more-filters:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-clear-filters {
    color: #dc2626;
    border-color: #dc2626;
}

.results-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    font-weight: 600;
    color: var(--text-dark);
}

.active-filters {
    font-size: 0.8125rem;
    color: var(--primary-blue);
    background: rgba(8, 49, 105, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-group label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.sort-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.view-btn.active {
    background: var(--primary-blue);
    color: white;
}

.properties-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.properties-content.with-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.properties-content.with-map .map-container {
    height: calc(100vh - 250px);
    position: sticky;
    top: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.properties-list.map {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

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

.property-card.list {
    display: flex;
    flex-direction: row;
}

.property-card.list .property-image {
    width: 280px;
    flex-shrink: 0;
}

.property-card.list .property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Loading Skeletons */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.property-card-skeleton {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e5e5e5 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-light) 25%, #e5e5e5 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-gray);
}

/* ============================================
   MARKET PAGE
   ============================================ */
.market-page {
    padding-top: 60px;
    min-height: 100vh;
}

.market-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d4a7c 100%);
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

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

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

.market-filters {
    max-width: 1200px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.market-filters .filter-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-xl);
}

.market-filters .filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
}

.market-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.market-filters .filter-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray);
}

.market-filters .filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: var(--bg-light);
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.market-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.market-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.chart-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.chart-section .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-section .chart-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-section .chart-header select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.chart-container {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.blue { background: var(--primary-blue); }
.legend-dot.navy { background: #1e3a5f; }
.legend-dot.yellow { background: var(--primary-gold); }
.legend-dot.green { background: #059669; }

.chart-placeholder.large { height: 280px; }
.chart-placeholder.medium { height: 200px; }

.chart-filters {
    display: flex;
    gap: 0.75rem;
}

/* Market Snapshot */
.market-snapshot {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

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

.snapshot-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.snapshot-header select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

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

.snapshot-card {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.snapshot-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.snapshot-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.snapshot-change {
    font-size: 0.8125rem;
    font-weight: 600;
}

.snapshot-change.positive { color: #059669; }
.snapshot-change.negative { color: #dc2626; }

/* Market Sidebar */
.market-sidebar {
    position: sticky;
    top: 80px;
}

.market-sidebar .contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.market-sidebar .contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.market-sidebar .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.market-sidebar .contact-form .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.market-sidebar .contact-form input,
.market-sidebar .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.btn-contact {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
}

/* ============================================
   AGENTS PAGE
   ============================================ */
.agents-page {
    padding-top: 60px;
    min-height: 100vh;
    background: var(--bg-light);
}

.agents-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d4a7c 100%);
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

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

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

.agents-search {
    max-width: 900px;
    margin: -2rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.agents-search .search-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.agents-search .search-input-wrapper {
    margin-bottom: 1rem;
}

.agents-search .search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.agents-search .search-filters select {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.agents-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

.agent-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.agent-card.list {
    flex-direction: row;
    align-items: center;
}

.agent-card .agent-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.agent-card .agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
}

.agent-card .verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #059669;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.agent-card .agent-info {
    flex: 1;
}

.agent-card .agent-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.agent-card .agent-agency {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.agent-card .agent-specialty {
    font-size: 0.8125rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.agent-card .agent-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.agent-card .agent-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.agent-card .reviews-count {
    color: var(--text-gray);
    font-weight: 400;
}

.agent-card .agent-listings {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.agent-card .agent-languages {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-tag {
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-gray);
}

.agent-card .agent-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-contact-agent,
.btn-view-profile {
    flex: 1;
    padding: 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-contact-agent {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.btn-view-profile {
    background: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

/* Featured Agencies */
.featured-agencies {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.featured-agencies h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.agency-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.agency-card:hover {
    box-shadow: var(--shadow-md);
}

.agency-card .agency-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

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

.agency-card .agency-info p {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.agency-card .agency-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-gold);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
}

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

.modal-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-header p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.modal-content .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-content .contact-form input,
.modal-content .contact-form select,
.modal-content .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.btn-send {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

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

    .property-sidebar {
        position: static;
        max-height: none;
        order: -1;
    }

    .agent-contact-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

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

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

    .market-sidebar {
        position: static;
    }

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

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

    .gallery-main {
        height: 300px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .gallery-thumb {
        height: 60px;
    }

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

    .property-header-actions {
        width: 100%;
        justify-content: space-between;
    }

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

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

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

    .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;
    }
}

/* ============================================
   COMPARE PROPERTIES PAGE
   ============================================ */
.compare-page {
    min-height: 100vh;
    background: var(--bg-light);
}

.compare-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.empty-compare {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.empty-compare svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-compare h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-compare p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin: 2rem 0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.images-row {
    grid-template-columns: 200px repeat(4, 1fr);
    border-bottom: 2px solid var(--border-color);
}

.row-label {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.property-column {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.property-column:last-child {
    border-right: none;
}

.property-column.empty {
    background: var(--bg-light);
}

.property-column.highlight {
    background: rgba(8, 49, 105, 0.05);
}

/* Property Images */
.images-row .property-column {
    flex-direction: column;
    padding: 0;
}

.property-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.property-image:hover .btn-remove {
    opacity: 1;
}

.btn-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

.property-header {
    padding: 1rem;
    text-align: center;
}

.property-header h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-header .property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.btn-view-details {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-view-details:hover {
    background: var(--primary-400);
}

/* Add Property Slot */
.add-property {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-gray);
    cursor: pointer;
}

.add-property svg {
    color: var(--text-light);
}

.add-property p {
    font-size: 0.875rem;
}

/* Comparison Sections */
.comparison-section {
    border-top: 2px solid var(--border-color);
}

.section-header {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Icons in Comparison */
.check-icon {
    color: #059669;
}

.cross-icon {
    color: #dc2626;
}

.score {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.score.good {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.score.moderate {
    background: rgba(212, 168, 83, 0.1);
    color: #d4a853;
}

.score.low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 80px 0 4rem;
}

.settings-page .container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.settings-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-nav button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.9375rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.settings-nav button:hover {
    background: rgba(8, 49, 105, 0.05);
    color: var(--primary-blue);
}

.settings-nav button.active {
    background: var(--primary-blue);
    color: white;
}

.settings-content {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.settings-section .section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section .section-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.settings-section .section-header p {
    color: var(--text-gray);
}

/* Profile Photo */
.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.photo-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-text-danger {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

/* Preference Groups */
.preference-group,
.notification-group,
.security-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.preference-group:last-child,
.notification-group:last-child,
.security-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preference-group h3,
.notification-group h3,
.security-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.help-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Toggle List */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.toggle-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toggle-item p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider {
    background: var(--primary-blue);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* Input Row */
.input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-row input {
    flex: 1;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #fee2e2;
    background: #fef2f2;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.danger-zone h3 {
    color: #dc2626;
}

.danger-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

/* Current Plan */
.current-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #059669;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.plan-info p {
    color: var(--text-gray);
}

.payment-methods,
.billing-history {
    margin-bottom: 2rem;
}

.payment-methods h3,
.billing-history h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.empty-state-small svg {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.empty-state-small p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* ============================================
   NOTIFICATIONS PAGE
   ============================================ */
.notifications-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 80px 0 4rem;
}

.notifications-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.notifications-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Notifications Filters */
.notifications-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.notifications-filters button {
    padding: 0.625rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.notifications-filters button:hover {
    border-color: var(--primary-blue);
}

.notifications-filters button.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    box-shadow: var(--shadow-md);
}

.notification-item.unread {
    background: rgba(8, 49, 105, 0.03);
    border-left: 4px solid var(--primary-blue);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.pricechange {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-icon.newlisting {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.notification-icon.showing {
    background: rgba(212, 168, 83, 0.1);
    color: #d4a853;
}

.notification-icon.message {
    background: rgba(8, 49, 105, 0.1);
    color: var(--primary-blue);
}

.notification-content {
    flex: 1;
}

.notification-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.unread-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-delete {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.notification-item:hover .btn-delete {
    opacity: 1;
}

.btn-delete:hover {
    border-color: var(--border-color);
    background: var(--bg-light);
    color: #dc2626;
}

.empty-notifications {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-notifications svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-notifications h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-notifications p {
    color: var(--text-gray);
}

/* ============================================
   SAVED SEARCHES PAGE
   ============================================ */
.saved-searches-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 80px 0 4rem;
}

.saved-searches-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.saved-searches-page .page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.saved-searches-page .page-header p {
    color: var(--text-gray);
}

.empty-searches {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-searches svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-searches h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-searches p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Searches Grid */
.searches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.search-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.2s;
}

.search-card:hover {
    box-shadow: var(--shadow-md);
}

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

.search-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.search-actions {
    display: flex;
    gap: 0.25rem;
}

.search-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.criterion-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-dark);
}

.search-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.search-stats .stat {
    text-align: center;
}

.search-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.notification-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.btn-view-results {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-view-results:hover {
    background: var(--primary-400);
}

.search-updated {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .comparison-row {
        grid-template-columns: 150px repeat(4, 1fr);
    }

    .settings-page .container {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        margin-bottom: 2rem;
    }

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

@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .row-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .property-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .property-column:last-child {
        border-bottom: none;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .settings-nav button {
        white-space: nowrap;
    }

    .profile-photo-section {
        flex-direction: column;
        text-align: center;
    }

    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-actions {
        flex-direction: column;
    }

    .current-plan {
        flex-direction: column;
        gap: 1rem;
    }

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

    .saved-searches-page .page-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   DELETE/CONFIRMATION MODAL STYLES
   ============================================ */
.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 Property Modal Styles */
.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;
}

/* ============================================
   MAP SEARCH PAGE
   ============================================ */
.map-search-page {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

.map-search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-gray);
    z-index: 100;
}

.map-search-header .search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    max-width: 400px;
}

.map-search-header .search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
}

.map-search-header .search-bar input:focus {
    outline: none;
}

.map-search-header .clear-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--text-light);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.map-search-header .quick-filters {
    display: flex;
    gap: 0.75rem;
}

.map-search-header .quick-filters select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.map-search-header .list-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.map-search-header .list-view-btn:hover {
    background: var(--bg-light);
}

/* Map Layout */
.map-layout {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.map-container {
    flex: 1;
    position: relative;
}

.map-container #property-map {
    width: 100%;
    height: 100%;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.map-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Property Sidebar */
.property-sidebar {
    width: 400px;
    background: white;
    border-left: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.property-sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.property-sidebar .sidebar-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.property-sidebar .close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

.property-cards {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.property-cards .property-card {
    display: block;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.property-cards .property-card:hover,
.property-cards .property-card.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-cards .card-image {
    position: relative;
    aspect-ratio: 16 / 10;
}

.property-cards .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-cards .price-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
}

.property-cards .card-content {
    padding: 1rem;
}

.property-cards .card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-cards .card-content .address {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-cards .card-content .features {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.no-properties {
    text-align: center;
    padding: 3rem 1rem;
}

.no-properties svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-properties p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

/* Leaflet Map Marker Styles */
.price-marker {
    background: transparent;
    border: none;
}

.price-marker .marker-content {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.price-marker.highlighted .marker-content,
.price-marker:hover .marker-content {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Leaflet Popup Styles */
.property-popup-container .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.property-popup-container .leaflet-popup-content {
    margin: 0;
}

.property-popup {
    width: 260px;
}

.property-popup img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.property-popup .popup-content {
    padding: 0.75rem;
}

.property-popup h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.property-popup .popup-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.property-popup .popup-features {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

/* Toggle Sidebar Button */
.toggle-sidebar-btn {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-sidebar-btn svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .map-search-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .map-search-header .search-bar {
        max-width: none;
        order: 1;
        width: 100%;
    }

    .map-search-header .quick-filters {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }

    .map-search-header .list-view-btn {
        order: 2;
    }

    .property-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid var(--border-gray);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 150;
    }

    .property-sidebar.open {
        transform: translateY(0);
    }

    .property-sidebar .close-sidebar {
        display: block;
    }

    .toggle-sidebar-btn {
        display: flex;
        align-items: center;
    }
}

/* ============================================
   MAP SEARCH ENHANCEMENTS
   ============================================ */

/* Back button */
.map-search-header .back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

.map-search-header .back-btn:hover {
    background: var(--bg-light);
}

/* Notification button */
.map-search-header .notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

.map-search-header .notification-btn:hover {
    background: var(--bg-light);
}

.map-search-header .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* Filter Chips Bar */
.filter-chips-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid var(--border-gray);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-chips-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-chip.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.filter-chip.filters-btn.has-filters {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.filter-chip.polygon-chip {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* Map Tools */
.map-tools {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 500;
}

.map-tools .tool-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.map-tools .tool-btn:hover {
    background: var(--bg-light);
}

.map-tools .tool-btn.active {
    background: var(--primary-blue);
    color: white;
}

.map-tools .tool-btn.cancel {
    background: #f3f4f6;
    color: var(--text-gray);
}

.map-tools .tool-btn.delete {
    color: #dc2626;
}

.map-tools .tool-btn.delete:hover {
    background: #fef2f2;
}

/* Listings Count Badge */
.listings-count-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 500;
}

/* Enhanced Property Cards */
.property-cards .status-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: #dc2626;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
}

.property-cards .status-badge.lease {
    background: #059669;
}

.property-cards .property-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.property-cards .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.property-cards .price span {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 0.8125rem;
}

.property-cards .btn-watch-list {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: background 0.2s;
}

.property-cards .btn-watch-list:hover {
    background: var(--bg-light);
}

.property-cards .features {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-gray);
}

.property-cards .features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.property-cards .features svg {
    color: var(--primary-blue);
}

/* Map Preview Popup */
.map-preview-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-preview-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}

.map-property-preview {
    width: 100%;
}

.map-property-preview .preview-image {
    position: relative;
    height: 140px;
}

.map-property-preview .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-property-preview .preview-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #dc2626;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 3px;
}

.map-property-preview .preview-badge.lease {
    background: #059669;
}

.map-property-preview .preview-content {
    padding: 0.75rem;
}

.map-property-preview .preview-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-property-preview .preview-type {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.375rem;
}

.map-property-preview .preview-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.map-property-preview .preview-price span {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.map-property-preview .preview-actions {
    margin-bottom: 0.5rem;
}

.map-property-preview .btn-watch-list {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
}

.map-property-preview .preview-nav {
    display: flex;
    justify-content: center;
}

.map-property-preview .nav-dots {
    display: flex;
    gap: 0.25rem;
}

.map-property-preview .nav-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-gray);
}

.map-property-preview .nav-dots .dot.active {
    width: 16px;
    border-radius: 3px;
    background: var(--primary-blue);
}

/* Mobile responsive for map enhancements */
@media (max-width: 768px) {
    .map-tools {
        top: 0.75rem;
        right: 0.75rem;
    }

    .map-tools .tool-btn {
        width: 40px;
        height: 40px;
    }

    .listings-count-badge {
        bottom: 0.75rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .filter-chips-bar {
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   MLS SEARCH PAGE
   ============================================ */
.mls-search-page {
    min-height: 100vh;
    background: var(--bg-light);
    padding: 80px 0 4rem;
}

.mls-search-page .page-header {
    margin-bottom: 2rem;
}

.mls-search-page .page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mls-search-page .page-header p {
    color: var(--text-gray);
}

/* Search Section */
.mls-search-page .search-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mls-search-page .search-form .search-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mls-search-page .search-form .form-group {
    display: flex;
    flex-direction: column;
}

.mls-search-page .search-form .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.mls-search-page .search-form .form-group input,
.mls-search-page .search-form .form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

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

.mls-search-page .search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

/* Results Section */
.mls-search-page .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mls-search-page .results-count {
    font-weight: 600;
    color: var(--text-dark);
}

.mls-search-page .view-options {
    display: flex;
    gap: 0.5rem;
}

.mls-search-page .view-btn {
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-gray);
    cursor: pointer;
}

.mls-search-page .view-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Listings Grid */
.mls-search-page .listings-grid {
    display: grid;
    gap: 1.5rem;
}

.mls-search-page .listings-grid.grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.mls-search-page .listings-grid.list {
    grid-template-columns: 1fr;
}

/* MLS Listing Card */
.mls-listing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.mls-listing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mls-listing-card.list {
    display: flex;
}

.mls-listing-card .listing-image {
    position: relative;
    aspect-ratio: 16 / 10;
}

.mls-listing-card.list .listing-image {
    width: 300px;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: 200px;
}

.mls-listing-card .listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mls-listing-card .mls-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.mls-listing-card .imported-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #059669;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.mls-listing-card .listing-content {
    padding: 1.25rem;
}

.mls-listing-card.list .listing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mls-listing-card .listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.mls-listing-card .listing-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mls-listing-card .listing-location {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.mls-listing-card .listing-features {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.mls-listing-card .listing-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-light);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-gray);
    margin-bottom: 0.75rem;
}

.mls-listing-card .listing-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mls-listing-card.list .listing-actions {
    margin-top: auto;
}

.mls-listing-card .btn-import {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.mls-listing-card .btn-import:hover {
    opacity: 0.9;
}

.mls-listing-card .btn-view {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.mls-listing-card .btn-icon {
    padding: 0.5rem;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    cursor: pointer;
}

.mls-listing-card .btn-icon:hover {
    background: var(--border-gray);
}

/* Loading/Error/No Results States */
.mls-search-page .loading-state,
.mls-search-page .error-state,
.mls-search-page .no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
}

.mls-search-page .loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.mls-search-page .error-state svg,
.mls-search-page .no-results svg {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mls-search-page .error-state p,
.mls-search-page .no-results p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.mls-search-page .no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mls-search-page .search-form .search-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mls-listing-card.list {
        flex-direction: column;
    }

    .mls-listing-card.list .listing-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* ================================================
   LISTICO AI - CHATBOT UI
   Voice & text property search with WebSocket
   Uses landing.css design tokens (--primary-blue, etc.)
   ================================================ */

/* Hide floating voice assistant on AI Valuation page (has its own chat) */
body:has(.vs-page) .voice-assistant {
    display: none;
}

/* Page Layout - fullscreen chat like ChatGPT/Claude */
.vs-page {
    height: 100dvh;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    background: #F8F9FB;
    overflow: hidden;
    z-index: 1;
    animation: vs-pageReveal 0.8s ease-out both;
}

@keyframes vs-pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Decorative Background */
.vs-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.vs-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.vs-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 49, 105, 0.12) 0%, transparent 60%);
    top: -180px;
    right: -150px;
    opacity: 0;
    animation: vs-orbReveal 2s ease-out 0.3s both, vs-float 25s ease-in-out 2.3s infinite;
}

.vs-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 60%);
    bottom: 20px;
    left: -120px;
    opacity: 0;
    animation: vs-orbReveal 2s ease-out 0.6s both, vs-float 30s ease-in-out 2.6s infinite reverse;
}

.vs-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 49, 105, 0.07) 0%, transparent 60%);
    top: 30%;
    left: 50%;
    opacity: 0;
    animation: vs-orbReveal 2s ease-out 0.9s both, vs-float 20s ease-in-out 2.9s infinite;
}

@keyframes vs-orbReveal {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.vs-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 49, 105, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 49, 105, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 100%);
    opacity: 0;
    animation: vs-gridFade 1.5s ease-out 0.5s both;
}

@keyframes vs-gridFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vs-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
}

/* Chat Area */
.vs-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

/* Welcome */
.vs-welcome {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    overflow-y: auto;
}

/* Welcome Icon - dramatic entrance */
.vs-welcome-icon {
    width: 150px;
    height: 96px;
    border-radius: 26px;
    overflow: visible;
    margin-bottom: 1.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: vs-iconEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.vs-welcome-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(8, 49, 105, 0.25), 0 0 0 1px rgba(8, 49, 105, 0.06);
}

/* Shimmer sweep over icon */
.vs-welcome-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    z-index: 2;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 60%
    );
    background-size: 250% 100%;
    opacity: 0;
    animation: vs-shimmer 0.8s ease-out 1s both;
}

@keyframes vs-shimmer {
    0% { opacity: 1; background-position: 150% 0; }
    100% { opacity: 0; background-position: -50% 0; }
}

/* Glow ring with breathing */
.vs-icon-glow {
    position: absolute;
    inset: -12px;
    border-radius: 34px;
    z-index: 0;
    opacity: 0;
    background: conic-gradient(
        from 0deg,
        rgba(8, 49, 105, 0.12),
        rgba(212, 168, 83, 0.12),
        rgba(8, 49, 105, 0.06),
        rgba(212, 168, 83, 0.12),
        rgba(8, 49, 105, 0.12)
    );
    animation:
        vs-glowReveal 0.8s ease-out 0.6s both,
        vs-glowSpin 8s linear 1.4s infinite,
        vs-glowBreath 3s ease-in-out 1.4s infinite;
}

@keyframes vs-glowReveal {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes vs-glowSpin {
    to { transform: rotate(360deg); }
}

@keyframes vs-glowBreath {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

@keyframes vs-iconEntrance {
    0% { opacity: 0; transform: scale(0.3) translateY(40px); }
    60% { opacity: 1; transform: scale(1.05) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Title - smooth entrance */
.vs-welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0A1929;
    margin: 0;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: vs-textReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Subtitle - smooth entrance */
.vs-welcome-subtitle {
    font-size: 1.0625rem;
    color: #6B7280;
    margin: 0.25rem 0 0;
    max-width: 440px;
    line-height: 1.6;
    opacity: 0;
    animation: vs-textReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

@keyframes vs-textReveal {
    0% { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Suggestion Chips */
.vs-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2.25rem;
    width: 100%;
    max-width: 560px;
}

.vs-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(8, 49, 105, 0.07);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    opacity: 0;
}

/* Staggered entrance - each chip 120ms apart, starting at 1.1s */
.vs-chip-1 { animation: vs-chipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both; }
.vs-chip-2 { animation: vs-chipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.22s both; }
.vs-chip-3 { animation: vs-chipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.34s both; }
.vs-chip-4 { animation: vs-chipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.46s both; }

@keyframes vs-chipIn {
    0% { opacity: 0; transform: translateY(28px) scale(0.92); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.vs-chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(8, 49, 105, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vs-chip-icon svg {
    opacity: 0.5;
    transition: all 0.35s;
}

.vs-chip-text {
    flex: 1;
    line-height: 1.35;
}

.vs-chip:hover {
    border-color: #083169;
    background: #083169;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(8, 49, 105, 0.25);
    transform: translateY(-4px) scale(1.02);
}

.vs-chip:hover .vs-chip-icon {
    background: rgba(255, 255, 255, 0.18);
}

.vs-chip:hover .vs-chip-icon svg {
    opacity: 1;
    stroke: #FFFFFF;
}

.vs-chip:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

/* Messages */
.vs-msg {
    display: flex;
    animation: vsMsgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vsMsgIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.vs-msg-user {
    justify-content: flex-end;
}

.vs-msg-ai {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.625rem;
}

/* AI Avatar */
.vs-ai-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(8, 49, 105, 0.1);
}

.vs-ai-avatar img {
    width: 100%;
    height: 100%;
    display: block;
}

.vs-ai-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 80%;
    min-width: 0;
}

/* Bubbles */
.vs-bubble {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    word-break: break-word;
}

.vs-bubble-user {
    background: linear-gradient(135deg, #083169 0%, #0B4A9E 100%);
    color: #FFFFFF;
    border-radius: 20px 20px 4px 20px;
    max-width: 70%;
    box-shadow: 0 2px 12px rgba(8, 49, 105, 0.2);
}

.vs-bubble-ai {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1A1A1A;
    border-radius: 20px 20px 20px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Typing Indicator */
.vs-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 4px;
}

.vs-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9A9A9A;
    animation: vsTyping 1.4s infinite ease-in-out;
}

.vs-typing span:nth-child(2) { animation-delay: 0.2s; }
.vs-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vsTyping {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
    40% { transform: scale(1.15); opacity: 1; }
}

/* Property Results Grid */
.vs-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

/* Property Card */
.vs-prop-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.vs-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(8, 49, 105, 0.1);
    border-color: rgba(8, 49, 105, 0.15);
}

.vs-prop-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: #F3F3F3;
}

.vs-prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vs-prop-card:hover .vs-prop-img img {
    transform: scale(1.03);
}

.vs-prop-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9A9A9A;
    opacity: 0.5;
}

.vs-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #D4A853;
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.vs-prop-info {
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vs-prop-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #083169;
}

.vs-prop-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #494949;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vs-prop-meta {
    display: flex;
    gap: 0.625rem;
    font-size: 0.75rem;
    color: #727272;
    margin-top: 0.125rem;
}

.vs-prop-loc {
    font-size: 0.75rem;
    color: #9A9A9A;
}

/* Bottom Input Bar */
.vs-input-bar {
    background: transparent;
    padding: 0.5rem 0;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
    animation: vs-barSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
    opacity: 0;
}

@keyframes vs-barSlide {
    0% { opacity: 0; transform: translateY(40px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Recording Indicator */
.vs-recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #ef4444;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 20px;
    animation: vsRecFadeIn 0.3s ease-out;
}

@keyframes vsRecFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vs-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: vsRecPulse 1s ease-in-out infinite;
}

@keyframes vsRecPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.vs-rec-label {
    color: #dc2626;
    letter-spacing: 0.01em;
}

.vs-rec-timer {
    color: #b91c1c;
    font-variant-numeric: tabular-nums;
    min-width: 2.5em;
    font-weight: 600;
}

/* Audio Waveform Bars */
.vs-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}

.vs-waveform span {
    width: 3px;
    border-radius: 2px;
    background: #ef4444;
    animation: vsWaveBar 1.2s ease-in-out infinite;
}

.vs-waveform span:nth-child(1) { height: 6px; animation-delay: 0s; }
.vs-waveform span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.vs-waveform span:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.vs-waveform span:nth-child(4) { height: 12px; animation-delay: 0.45s; }
.vs-waveform span:nth-child(5) { height: 6px; animation-delay: 0.6s; }

@keyframes vsWaveBar {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Input Bar Recording State */
.vs-input-bar.is-recording {
    border-top-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 -4px 24px rgba(239, 68, 68, 0.08);
}

.vs-input-bar.is-recording .vs-input-row {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}

/* Connection Status Dot */
.vs-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.vs-status-dot.disconnected {
    background: #f59e0b;
    animation: vsStatusPulse 1.5s ease-in-out infinite;
}

@keyframes vsStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.vs-input-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 830px;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 0.3rem 0.3rem 0.3rem 0.5rem;
    border: 1.5px solid rgba(8, 49, 105, 0.12);
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.vs-input-row:focus-within {
    border-color: #083169;
    box-shadow: 0 0 0 4px rgba(8, 49, 105, 0.08), 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Mic Button */
.vs-mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #727272;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.vs-mic-btn:hover:not(:disabled) {
    color: #083169;
    background: rgba(8, 49, 105, 0.06);
}

.vs-mic-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vs-mic-btn.recording {
    background: #ef4444;
    color: white;
    animation: vsMicPulse 1.5s ease-in-out infinite;
}

@keyframes vsMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.vs-mic-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #D7D7D7;
    border-top-color: #083169;
    border-radius: 50%;
    animation: vsSpin 0.7s linear infinite;
}

@keyframes vsSpin {
    to { transform: rotate(360deg); }
}

/* Text Input */
.vs-text-input {
    flex: 1;
    padding: 0.5rem 0.25rem;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    background: transparent;
    color: #212121;
    font-family: inherit;
}

.vs-text-input::placeholder {
    color: #9A9A9A;
}

.vs-text-input:focus {
    outline: none;
}

.vs-text-input:disabled {
    opacity: 0.5;
}

/* Send Button */
.vs-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #083169;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(8, 49, 105, 0.2);
}

.vs-send-btn:hover:not(:disabled) {
    background: #051D3F;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(8, 49, 105, 0.3);
}

.vs-send-btn:disabled {
    background: #C2C2C2;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .vs-page {
        padding-bottom: 60px;
    }

    .vs-chat-area {
        padding: 1.25rem 1rem;
    }

    .vs-welcome-title {
        font-size: 1.75rem;
    }

    .vs-welcome-icon {
        width:100px;
        height: 76px;
    }

    .vs-welcome-icon img {
        border-radius: 20px;
    }

    .vs-icon-glow {
        border-radius: 26px;
    }

    .vs-bubble-user {
        max-width: 85%;
    }

    .vs-ai-content {
        max-width: 85%;
    }

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

    .vs-suggestions {
        gap: 0.5rem;
        max-width: 480px;
    }

    .vs-chip {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
        border-radius: 14px;
    }

    .vs-chip-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .vs-orb-1 { width: 300px; height: 300px; }
    .vs-orb-2 { width: 250px; height: 250px; }
    .vs-orb-3 { display: none; }

    .vs-chat-area {
        padding: 1.25rem 1rem 1rem;
    }

    .vs-recording-indicator {
        font-size: 0.75rem;
        gap: 0.5rem;
        padding: 0.3rem 0.625rem;
    }

    .vs-waveform span:nth-child(4),
    .vs-waveform span:nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .vs-welcome-title {
        font-size: 1.5rem;
    }

    .vs-welcome-subtitle {
        font-size: 0.875rem;
    }

    .vs-suggestions {
        grid-template-columns: 1fr;
    }

    .vs-input-bar {
        padding: 0.625rem 0.75rem;
    }

    .vs-input-row {
        gap: 0.375rem;
        padding: 0.2rem 0.2rem 0.2rem 0.3rem;
    }

    .vs-mic-btn,
    .vs-send-btn {
        width: 36px;
        height: 36px;
    }

    .vs-text-input {
        font-size: 0.875rem;
    }

    .vs-ai-avatar {
        width: 28px;
        height: 28px;
    }

    .vs-recording-indicator {
        font-size: 0.6875rem;
        gap: 0.375rem;
        padding: 0.25rem 0.5rem;
    }

    .vs-waveform {
        gap: 2px;
        height: 14px;
    }

    .vs-waveform span { width: 2px; }
    .vs-waveform span:nth-child(3) { height: 14px; }
}

/* ================================================
   NEIGHBORHOOD PAGE STYLES
   Epic 11: Neighborhood Guide
   ================================================ */
.neighborhood-page {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

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

/* Hero Section */
.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;
}

/* Search Section */
.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;
}

/* Error Message */
.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 */
.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);
}

/* Tabs */
.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 */
.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 Tab */
.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 Tab */
.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 Tab */
.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 Tab */
.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);
}

/* Walk Score Tab */
.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 */
.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;
}

/* Responsive */
@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;
    }
}

/* ================================================
   VOICE ASSISTANT STYLES
   Epic 5: AI Voice Assistant
   ================================================ */
.voice-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .voice-assistant {
        bottom: 80px;
    }
}

/* Floating Action Button */
.voice-assistant-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #083169;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(8, 49, 105, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.voice-assistant-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(8, 49, 105, 0.45);
}

.voice-assistant-fab.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.voice-assistant-fab .recording-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: va-pulse-ring 1.5s infinite;
}

@keyframes va-pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.voice-assistant.open .voice-assistant-fab {
    width: 40px;
    height: 40px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    background: rgba(8, 49, 105, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

/* Assistant Panel */
.voice-assistant-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 380px;
    height: 560px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: va-slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes va-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: #083169;
    color: white;
}

.assistant-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.assistant-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.assistant-actions {
    display: flex;
    gap: 0.5rem;
}

.assistant-actions .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.assistant-actions .icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Messages Container */
.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: #F7F7F8;
}

/* Welcome State */
.assistant-welcome {
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.assistant-welcome .welcome-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(8, 49, 105, 0.12);
}

.assistant-welcome .welcome-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.assistant-welcome h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: #212121;
}

.assistant-welcome p {
    font-size: 0.8125rem;
    color: #727272;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.suggestion-chips {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.suggestion-chip {
    padding: 0.625rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 0.8125rem;
    color: #494949;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
}

.suggestion-chip:hover {
    background: #083169;
    border-color: #083169;
    color: white;
}

/* Messages */
.voice-assistant-panel .message {
    display: flex;
    gap: 0.5rem;
    max-width: 90%;
    animation: vsMsgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-assistant-panel .message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.voice-assistant-panel .message.assistant {
    align-self: flex-start;
}

.voice-assistant-panel .assistant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 2px;
}

.voice-assistant-panel .assistant-avatar img {
    width: 100%;
    height: 100%;
    display: block;
}

.voice-assistant-panel .message-content {
    padding: 0.625rem 0.875rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.voice-assistant-panel .message.user .message-content {
    background: #083169;
    color: white;
    border-bottom-right-radius: 4px;
}

.voice-assistant-panel .message.assistant .message-content {
    background: #FFFFFF;
    color: #212121;
    border: 1px solid #E8E8E8;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.voice-assistant-panel .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.voice-assistant-panel .typing-indicator span {
    width: 7px;
    height: 7px;
    background: #9A9A9A;
    border-radius: 50%;
    animation: vsTyping 1.4s infinite ease-in-out;
}

/* Property Results */
.voice-assistant-panel .property-results {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.voice-assistant-panel .property-result-card {
    display: flex;
    gap: 0.625rem;
    padding: 0.5rem;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.voice-assistant-panel .property-result-card:hover {
    border-color: #083169;
    transform: translateX(3px);
}

.voice-assistant-panel .property-result-card img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.voice-assistant-panel .property-result-card .no-image {
    width: 52px;
    height: 52px;
    background: #F3F3F3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9A9A9A;
    flex-shrink: 0;
}

.voice-assistant-panel .property-result-card .property-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.voice-assistant-panel .property-result-card .property-price {
    font-weight: 700;
    color: #083169;
    font-size: 0.8125rem;
}

.voice-assistant-panel .property-result-card .property-title {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-assistant-panel .property-result-card .property-details {
    font-size: 0.6875rem;
    color: #727272;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #D4A853;
    margin-bottom: 0.5rem;
}

.connection-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4A853;
    animation: blink 1s infinite;
}

/* Input Area */
.assistant-input {
    padding: 0.875rem 1rem;
    border-top: 1px solid #E8E8E8;
    background: #FFFFFF;
}

.assistant-input .input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.assistant-input input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #E0E0E0;
    border-radius: 22px;
    font-size: 0.875rem;
    background: #F7F7F8;
    color: #212121;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.assistant-input input:focus {
    outline: none;
    border-color: #083169;
    background: #FFFFFF;
}

.assistant-input input:disabled {
    opacity: 0.5;
}

.assistant-input .voice-btn,
.assistant-input .send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.assistant-input .voice-btn {
    background: transparent;
    color: #727272;
}

.assistant-input .voice-btn:hover:not(:disabled) {
    color: #083169;
    background: rgba(8, 49, 105, 0.06);
}

.assistant-input .voice-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.assistant-input .voice-btn.recording {
    background: #ef4444;
    color: white;
    animation: vsMicPulse 1.5s ease-in-out infinite;
}

.assistant-input .send-btn {
    background: #083169;
    color: white;
}

.assistant-input .send-btn:hover:not(:disabled) {
    background: #051D3F;
    transform: scale(1.05);
}

.assistant-input .send-btn:disabled {
    background: #C2C2C2;
    cursor: not-allowed;
    transform: none;
}

.assistant-input .recording-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
}

.assistant-input .recording-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 480px) {
    .voice-assistant {
        bottom: 80px;
        right: 16px;
    }

    .voice-assistant-panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        max-height: 600px;
    }

    .voice-assistant-fab {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   PROPERTY DETAILS - NEW SECTIONS
   ============================================ */

/* School Ratings Section */
.school-ratings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.school-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
}

.school-item:hover {
    box-shadow: var(--shadow-md);
}

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

.school-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.school-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.school-distance {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.school-distance svg {
    color: var(--primary-blue);
}

.school-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.rating-stars-large {
    display: flex;
    gap: 0.25rem;
}

.rating-stars-large svg {
    color: #FFA500;
}

.rating-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.school-quality-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quality-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    min-width: 100px;
}

.quality-progress {
    flex: 1;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.quality-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s;
}

.quality-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 40px;
    text-align: right;
}

/* Cash Flow Analysis Section */
.cash-flow-analysis {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.cash-flow-grid {
    display: grid;
    gap: 1rem;
}

.cash-flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.cash-flow-item.total {
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cash-flow-label {
    font-size: 0.9375rem;
    color: var(--text-gray);
}

.cash-flow-item.total .cash-flow-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.cash-flow-value {
    font-weight: 600;
    color: var(--text-dark);
}

.cash-flow-value.positive {
    color: #4CAF50;
}

.cash-flow-value.negative {
    color: #F44336;
}

.cash-flow-item.total .cash-flow-value {
    font-size: 1.125rem;
}

/* Neighborhood Insights Section */
.neighborhood-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.neighborhood-demographics h3,
.neighborhood-amenities h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

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

.demo-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.demo-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.age-distribution h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.age-chart-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-bar {
    background: linear-gradient(90deg, var(--primary-blue), #1976D2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 150px;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.amenity-item svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Comparison Section */
.comparison-section {
    background: var(--bg-light);
    padding: 3rem 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

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

.comparison-table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.comparison-table tr.current-neighborhood {
    background: rgba(33, 150, 243, 0.05);
}

.comparison-table tr.current-neighborhood td {
    font-weight: 600;
}

.table-rating {
    display: flex;
    gap: 0.25rem;
}

.table-rating svg {
    color: #FFA500;
}

/* Property Features/Amenities */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.feature-item:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.feature-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.feature-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-value {
    font-size: 0.9375rem;
    color: var(--text-gray);
}

/* Agent Rating Stars */
.agent-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars .star-filled {
    color: #FFA500;
}

.rating-stars .star-empty {
    color: #E0E0E0;
}

.rating-stars .star-half {
    color: #FFA500;
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.agent-languages {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Share Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.share-modal {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-close:hover {
    background: var(--bg-light);
}

.modal-body {
    padding: 1.5rem;
}

.share-social {
    margin-bottom: 2rem;
}

.share-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-btn.facebook {
    color: #1877F2;
}

.share-btn.twitter {
    color: #1DA1F2;
}

.share-btn.whatsapp {
    color: #25D366;
}

.share-btn.email {
    color: #666;
}

.share-link h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.copy-link-container {
    display: flex;
    gap: 0.75rem;
}

.link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-gray);
    background: var(--bg-light);
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

/* Full Gallery Modal */
.gallery-modal-overlay {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
}

.gallery-modal-content {
    background: black;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-counter-large {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.btn-close-gallery {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: white;
}

.btn-close-gallery:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-modal-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-image-container img {
    max-width: 100%;
    max-height: calc(100vh - 250px);
    object-fit: contain;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 2rem;
}

.gallery-nav-btn.next {
    right: 2rem;
}

.gallery-modal-thumbs {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    overflow-x: auto;
    max-width: 100%;
}

.gallery-modal-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-modal-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-modal-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-modal-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-modal-thumb:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.gallery-modal-thumb.active {
    border-color: white;
}

.gallery-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* See All Photos Overlay */
.see-all-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.see-all-photos-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.see-all-photos-overlay svg {
    color: white;
}

.see-all-photos-overlay span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .neighborhood-grid {
        grid-template-columns: 1fr;
    }

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

    .social-share-buttons {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        border-radius: 0;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-nav-btn.prev {
        left: 0.5rem;
    }

    .gallery-nav-btn.next {
        right: 0.5rem;
    }

    .gallery-modal-thumbs {
        padding: 0.75rem;
    }

    .gallery-modal-thumb {
        width: 70px;
        height: 50px;
    }
}

/* Section Container for New Sections */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Similar Properties & Recommendations Section */
.similar-properties-section,
.recommendations-section {
    background: white;
    padding: 4rem 0;
    margin-top: 3rem;
}

.similar-properties-section h2,
.recommendations-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.similar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.similar-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.similar-card:hover .similar-image img {
    transform: scale(1.05);
}

.similar-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.similar-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.similar-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.similar-features {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.similar-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.similar-city {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.similar-city::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
}

/* Property Timeline Section */
.timeline-section {
    background: var(--bg-light);
    padding: 4rem 0;
    margin-top: 3rem;
}

.timeline-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.625rem;
    top: 2rem;
    bottom: -1.5rem;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
    flex-shrink: 0;
    z-index: 1;
}

.timeline-dot.green {
    background: #4CAF50;
    box-shadow: 0 0 0 2px #4CAF50;
}

.timeline-dot.blue {
    background: var(--primary-blue);
    box-shadow: 0 0 0 2px var(--primary-blue);
}

.timeline-dot.orange {
    background: #FF9800;
    box-shadow: 0 0 0 2px #FF9800;
}

.timeline-dot.red {
    background: #F44336;
    box-shadow: 0 0 0 2px #F44336;
}

.timeline-dot.gray {
    background: #9E9E9E;
    box-shadow: 0 0 0 2px #9E9E9E;
}

.timeline-content {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.timeline-event {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-detail {
    font-size: 0.9375rem;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    display: inline-block;
    align-self: flex-start;
}

.timeline-desc {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 1rem;
    }

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

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

    .similar-properties-section,
    .recommendations-section,
    .timeline-section {
        padding: 2rem 0;
    }

    .similar-properties-section h2,
    .recommendations-section h2,
    .timeline-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}
