/* =========================================================================
 * HOME3 Dashboard Styles
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * 1. CSS Custom Properties (Design Tokens)
 * ------------------------------------------------------------------------- */
:root {
	/* Colors */
	--home3-orange: #f66a35;
	--home3-orange-dark: #e55a25;
	--home3-orange-light: #ff8c5c;
	--text-dark: #333333;
	--text-muted: #666666;
	--text-light: #ffffff;
	--bg-light: #ffffff;
	--bg-light-accent: #f9f9f9;
	--border-light: #eeeeee;
	--sidebar-color: #f5f5f5;

	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-xxl: 48px;

	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-round: 50%;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
	--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
	--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
	--shadow-heavy: 0 15px 25px rgba(0,0,0,0.15);

	/* Fonts */
	--font-satoshi: 'Satoshi', sans-serif;
	--font-heading: 'Satoshi', sans-serif;
	--font-body: 'Satoshi', sans-serif;
}

/* -------------------------------------------------------------------------
 * 2. Base / Reset
 * ------------------------------------------------------------------------- */
body {
	font-family: var(--font-body);
	color: var(--text-dark);
	margin: 0;
	padding: 0;
	background-color: var(--bg-light-accent);
	line-height: 1.5;
}

button, input {
	font-family: inherit;
}

.dashboard-layout-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	background-color: var(--bg-light);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
	min-height: calc(100vh - 61px);
	overflow: hidden;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
	box-sizing: border-box;
}

.hidden { display: none !important; }

/* -------------------------------------------------------------------------
 * 3. Buttons
 * ------------------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: var(--radius-md);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: 0.95em;
	text-align: center;
}

.btn-primary {
	background-color: var(--home3-orange);
	color: var(--text-light);
	border-color: var(--home3-orange);
}

	.btn-primary:hover {
		background-color: var(--home3-orange-dark);
		border-color: var(--home3-orange-dark);
		box-shadow: var(--shadow-sm);
	}

.btn-secondary {
	background-color: var(--bg-light);
	color: var(--text-dark);
	border: 1px solid #dcdcdc;
}

	.btn-secondary:hover {
		background-color: var(--bg-light-accent);
		border-color: #cccccc;
	}

.btn-small {
	padding: 4px 8px;
	font-size: 0.8em;
}

.btn-see-more {
	background-color: var(--bg-light);
	color: var(--text-dark);
	border: 1px solid #dcdcdc;
	padding: 8px 16px;
	border-radius: var(--radius-md);
	text-decoration: none;
	display: inline-block;
	text-align: center;
	margin-top: auto;
	align-self: flex-start;
}

	.btn-see-more:hover {
		background-color: var(--bg-light-accent);
		border-color: #cccccc;
	}

/* -------------------------------------------------------------------------
 * 4. Toast Notifications
 * ------------------------------------------------------------------------- */
#toast-container {
	position: fixed;
	top: var(--spacing-lg);
	right: var(--spacing-lg);
	z-index: 11000;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	pointer-events: none;
}

.toast {
	padding: 12px 20px;
	border-radius: var(--radius-md);
	font-size: 0.9em;
	font-weight: 500;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: auto;
	max-width: 360px;
}

.toast-visible {
	opacity: 1;
	transform: translateX(0);
}

.toast-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.toast-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.toast-info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* -------------------------------------------------------------------------
 * 5. App QR Modal
 * ------------------------------------------------------------------------- */
.app-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

	.app-modal:not(.hidden) {
		opacity: 1;
		pointer-events: all;
	}

.app-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(2px);
}

.app-modal-content {
	position: relative;
	background: #fff;
	padding: 2rem 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	max-width: 360px;
	width: 90%;
	text-align: center;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: scale(0.9);
	transition: transform 0.2s ease;
}

.app-modal:not(.hidden) .app-modal-content {
	transform: scale(1);
}

.app-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #666;
	cursor: pointer;
	transition: color 0.2s ease;
}

	.app-modal-close:hover { color: #222; }

.app-modal-content h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	color: #333;
}

.app-modal-subtitle {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: #555;
}

#app-qr {
	width: 180px;
	height: 180px;
	object-fit: contain;
	border: 1px solid #eee;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	background: #fff;
}

/* -------------------------------------------------------------------------
 * 6. Login / Register Modals
 * ------------------------------------------------------------------------- */
.modal-overlay, .modal-content, .modal-close {
	box-sizing: border-box;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background-color: #ffffff;
	border-radius: 8px;
	width: 90%;
	max-width: 400px;
	padding: 24px;
	position: relative;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #666;
}

	.modal-close:hover { color: #000; }

.modal-content h2 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 24px;
	font-weight: 600;
	color: #333;
	text-align: center;
}

.modal-content form {
	display: flex;
	flex-direction: column;
}

.modal-content label {
	margin-bottom: 4px;
	font-weight: 500;
	font-size: 14px;
	color: #555;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
	padding: 10px 12px;
	margin-bottom: 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
	transition: border-color 0.2s;
}

	.modal-content input[type="text"]:focus,
	.modal-content input[type="email"]:focus,
	.modal-content input[type="password"]:focus {
		outline: none;
		border-color: var(--home3-orange);
	}

.checkbox-row {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}

	.checkbox-row input[type="checkbox"] {
		margin-right: 8px;
	}

.modal-content button[type="submit"] {
	background-color: var(--home3-orange);
	color: #fff;
	border: none;
	padding: 12px 0;
	font-size: 16px;
	border-radius: var(--radius-md);
	cursor: pointer;
	margin-top: 8px;
	transition: background-color 0.2s;
}

	.modal-content button[type="submit"]:hover {
		background-color: var(--home3-orange-dark);
	}

.switch-mode {
	margin-top: 12px;
	text-align: center;
	font-size: 14px;
	color: #555;
}

	.switch-mode a {
		color: var(--home3-orange);
		text-decoration: none;
		font-weight: 500;
	}

		.switch-mode a:hover {
			text-decoration: underline;
		}

.error-message {
	background-color: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
	border-radius: 4px;
	padding: 8px 12px;
	margin-bottom: 16px;
	font-size: 14px;
	display: none;
}

@media (min-width: 480px) {
	.modal-content {
		padding: 32px;
	}

		.modal-content h2 {
			font-size: 26px;
		}
}

/* -------------------------------------------------------------------------
 * 7. Geo Banner
 * ------------------------------------------------------------------------- */
.geo-banner {
	position: fixed;
	top: var(--spacing-md);
	left: 50%;
	transform: translateX(-50%);
	background: var(--home3-orange-light);
	color: var(--text-dark);
	padding: var(--spacing-sm) var(--spacing-md);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	z-index: 2000;
}

	.geo-banner.hidden {
		display: none !important;
	}

	.geo-banner p {
		margin: 0;
		font-size: 0.9em;
		flex: 1;
	}

/* -------------------------------------------------------------------------
 * 8. Header / Navbar
 * ------------------------------------------------------------------------- */
.header {
	background-color: var(--bg-light);
	padding: 0;
	border-bottom: 1px solid var(--border-light);
	position: sticky;
	top: 0;
	z-index: 1000;
	height: 60px;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}

	.header .container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		max-width: 1200px;
		padding: 0 var(--spacing-lg);
	}

.navbar {
	display: flex;
	align-items: center;
	width: 100%;
}

.logo img {
	height: 35px;
	display: block;
	margin-right: var(--spacing-xl);
}

.nav-links {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--spacing-lg);
}

	.nav-links li a {
		text-decoration: none;
		color: var(--text-dark);
		font-weight: 500;
		font-family: var(--font-body);
		transition: color 0.2s;
		padding: 5px 0;
		position: relative;
	}

		.nav-links li a:hover,
		.nav-links li a.active {
			color: var(--home3-orange);
		}

.user-actions {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-left: auto;
}

	.user-actions .btn {
		padding: 8px 16px;
	}

.user-info {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	margin-left: auto;
}

.user-greeting {
	font-size: 0.9em;
	color: var(--text-dark);
	white-space: nowrap;
}

.credits-badge {
	background: var(--home3-orange);
	color: white;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.8em;
	font-weight: 600;
	white-space: nowrap;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-dark);
	margin-left: var(--spacing-md);
}

/* -------------------------------------------------------------------------
 * 9. AI Chat Hero Section
 * ------------------------------------------------------------------------- */
.ai-chat-hero-fullwidth {
	min-height: 300px;
	background-image: url('https://cdn.prod.website-files.com/664e06c4e3ed1bc43b8231fc/6659a7fa52d53f6cadb8fe30_new-hero.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: var(--spacing-md);
}

.ai-chat-hero-content {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	position: relative;
	z-index: 2;
	text-align: center;
}

.ai-chat-text-section {
	text-align: center;
}

	.ai-chat-text-section p {
		color: var(--text-light);
		font-size: 1.1em;
		margin-bottom: var(--spacing-sm);
		opacity: 0.9;
	}

	.ai-chat-text-section h1 {
		color: var(--text-light);
		font-size: 2.5em;
		font-weight: 700;
		line-height: 1.1;
		margin: 0 0 var(--spacing-sm);
		font-family: var(--font-heading);
	}

.search-suggestions {
	display: flex;
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-sm);
	justify-content: center;
}

	.search-suggestions span {
		color: var(--text-light);
		font-size: 0.95em;
		opacity: 0.9;
	}

/* AI Chat Interface (the white card in the hero) */
.ai-chat-interface {
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--radius-xl);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(10px);
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.ai-chat-messages {
	max-height: 500px;
	overflow-y: auto;
	margin-bottom: var(--spacing-md);
	padding: var(--spacing-sm);
	border-radius: var(--radius-md);
	background: var(--bg-light-accent);
	display: none;
}

	.ai-chat-messages:not(:empty) {
		display: block;
	}

/* Chat Message Layout */
.ai-chat-message {
	margin-bottom: var(--spacing-md);
	display: flex;
	flex-direction: column;
	clear: both;
}

	.ai-chat-message.user {
		align-items: flex-start;
		margin-right: 20%;
	}

	.ai-chat-message.ai {
		align-items: flex-end;
		margin-left: 20%;
	}

.ai-chat-bubble {
	padding: 12px 16px;
	border-radius: 18px;
	max-width: 100%;
	word-wrap: break-word;
	font-size: 0.95em;
	line-height: 1.5;
}

/* User bubble */
.ai-chat-message.user .ai-chat-bubble {
	background-color: var(--home3-orange);
	color: white;
	border-bottom-left-radius: 4px;
}

/* AI bubble */
.ai-chat-message.ai .ai-chat-bubble {
	background-color: #e9ecef;
	color: #333;
	border-bottom-right-radius: 4px;
}

/* Markdown content inside AI bubbles */
.ai-chat-bubble ul {
	margin: 8px 0;
	padding-left: 20px;
}

.ai-chat-bubble li {
	margin-bottom: 4px;
}

.ai-chat-bubble code {
	background: rgba(0,0,0,0.06);
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 0.9em;
}

.ai-chat-bubble a {
	color: var(--home3-orange);
	text-decoration: underline;
}

/* Tool indicator bubble */
.tool-indicator .ai-chat-bubble.tool-bubble {
	background-color: #f0f0f0;
	color: #555;
	font-size: 0.85em;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--radius-md);
}

.tool-icon {
	font-size: 1.1em;
}

.tool-label {
	font-style: italic;
}

/* Typing indicator */
.ai-typing-indicator {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
}

	.ai-typing-indicator span {
		width: 8px;
		height: 8px;
		background-color: var(--text-muted);
		border-radius: 50%;
		animation: typing-bounce 1.4s infinite ease-in-out;
	}

		.ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
		.ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
		.ai-typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typing-bounce {
	0%, 80%, 100% {
		transform: scale(0.8);
		opacity: 0.5;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Chat input area */
.ai-chat-input-container {
	display: flex;
	gap: var(--spacing-sm);
	align-items: center;
}

.ai-chat-input {
	flex: 1;
	padding: var(--spacing-md);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s;
}

	.ai-chat-input:focus {
		border-color: var(--home3-orange);
	}

	.ai-chat-input:disabled {
		background-color: var(--bg-light-accent);
		cursor: not-allowed;
	}

.ai-chat-send-btn {
	background-color: var(--home3-orange);
	color: white;
	border: none;
	border-radius: var(--radius-round);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	flex-shrink: 0;
}

	.ai-chat-send-btn:hover {
		background-color: var(--home3-orange-dark);
		transform: scale(1.05);
	}

	.ai-chat-send-btn:disabled {
		background-color: var(--text-muted);
		cursor: not-allowed;
		transform: none;
	}

/* Property Cards inside Chat */
.ai-property-cards-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--bg-light);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-md);
	margin-bottom: var(--spacing-md);
}

.ai-property-cards-container {
	display: flex;
	gap: var(--spacing-lg);
	overflow-x: auto;
	padding-bottom: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

	.ai-property-cards-container::-webkit-scrollbar { height: 6px; }
	.ai-property-cards-container::-webkit-scrollbar-track { background: var(--bg-light-accent); border-radius: 3px; }
	.ai-property-cards-container::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

	.ai-property-cards-container .list-view-card {
		flex: 0 0 280px;
		cursor: pointer;
	}

.ai-browse-all {
	width: 100%;
	display: flex;
	justify-content: center;
}

.ai-browse-all-btn {
	background: var(--home3-orange);
	color: #fff;
	padding: var(--spacing-sm) var(--spacing-lg);
	border-radius: var(--radius-lg);
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

	.ai-browse-all-btn:hover {
		background: var(--home3-orange-dark);
		transform: translateY(-1px);
		box-shadow: var(--shadow-md);
	}

/* -------------------------------------------------------------------------
 * 10. Property Card (shared component)
 * ------------------------------------------------------------------------- */
.list-view-card {
	width: 280px;
	height: auto;
	margin: 8px;
	padding: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--bg-light);
	box-shadow: var(--shadow-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid var(--border-light);
	display: flex;
	flex-direction: column;
	cursor: pointer;
	flex: 0 0 auto;
}

	.list-view-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}

	.list-view-card .card-image {
		position: relative;
		height: 200px;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		background-color: #f0f0f0;
		border-top-left-radius: var(--radius-lg);
		border-top-right-radius: var(--radius-lg);
	}

	.list-view-card .status-tag {
		position: absolute;
		top: 8px;
		left: 8px;
		padding: 4px 8px;
		background-color: white;
		color: #333;
		font-size: 12px;
		font-weight: bold;
		border-radius: 16px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		z-index: 5;
	}

	.list-view-card .card-actions {
		position: absolute;
		top: 8px;
		right: 8px;
		display: flex;
		gap: 8px;
		z-index: 5;
	}

	.list-view-card .save-btn,
	.list-view-card .share-btn {
		width: 32px;
		height: 32px;
		border-radius: 6px;
		background-color: rgba(0, 0, 0, 0.5);
		border: none;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		transition: background-color 0.2s;
	}

		.list-view-card .save-btn:hover,
		.list-view-card .share-btn:hover {
			background-color: rgba(0, 0, 0, 0.7);
		}

		.list-view-card .save-btn.saved {
			background-color: var(--home3-orange);
		}

	.list-view-card .card-details {
		padding: var(--spacing-md);
		flex-grow: 1;
		display: flex;
		flex-direction: column;
	}

	.list-view-card .price-row {
		display: flex;
		justify-content: flex-start;
		align-items: baseline;
		margin-bottom: var(--spacing-sm);
	}

	.list-view-card .price {
		font-family: var(--font-heading);
		font-size: 1.3em;
		font-weight: 700;
		color: var(--text-dark);
	}

	.list-view-card .currency {
		font-size: 14px;
		font-weight: bold;
		color: #666;
		margin-left: 4px;
	}

	.list-view-card .days-listed {
		font-size: 12px;
		color: #666;
		margin-left: auto;
	}

	.list-view-card .stats-row {
		display: flex;
		gap: 12px;
		margin-bottom: 6px;
		color: #666;
		font-size: 14px;
	}

	.list-view-card .stat-item {
		display: flex;
		align-items: center;
		gap: 4px;
	}

		.list-view-card .stat-item img {
			width: 16px;
			height: 16px;
			margin-right: 4px;
		}

		.list-view-card .stat-item b {
			font-weight: 500;
			color: var(--text-dark);
			margin-right: 2px;
		}

	.list-view-card .address-row {
		font-size: 14px;
		color: #666;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		margin-top: auto;
	}

/* -------------------------------------------------------------------------
 * 11. Property Listings Section (Tabs)
 * ------------------------------------------------------------------------- */
.property-listings {
	padding: var(--spacing-xl) 0;
	background-color: var(--bg-light);
}

.tabs {
	flex-basis: 100%;
	width: 100%;
	text-align: center;
	border-bottom: 1px solid var(--border-light);
	margin-bottom: var(--spacing-xl);
	padding-bottom: 0;
	box-sizing: border-box;
}

.tab-link {
	background: none;
	border: none;
	padding: var(--spacing-md) var(--spacing-lg);
	cursor: pointer;
	font-size: 1.1em;
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--text-muted);
	position: relative;
	bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease;
	border-bottom: 3px solid transparent;
	margin: 0 var(--spacing-sm);
}

	.tab-link.active {
		color: var(--text-dark);
		border-bottom: 3px solid var(--home3-orange);
	}

	.tab-link:hover {
		color: var(--text-dark);
	}

.tab-content {
	display: none;
	flex-basis: 100%;
	width: 100%;
	clear: both;
	padding-top: var(--spacing-lg);
}

	.tab-content.active {
		display: block;
	}

.section-title {
	flex-basis: 100%;
	width: 100%;
	font-family: var(--font-heading);
	font-size: 1.8rem;
	font-weight: 600;
	margin: 0 0 var(--spacing-lg);
	text-align: left;
	color: var(--text-dark);
	clear: both;
	box-sizing: border-box;
}

/* Horizontal scrolling row for cards */
.scrolling-row {
	display: flex;
	overflow-x: auto;
	gap: var(--spacing-lg);
	scroll-snap-type: x mandatory;
	padding-bottom: var(--spacing-lg);
	width: 100%;
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: var(--border-light) transparent;
}

	.scrolling-row::-webkit-scrollbar { height: 8px; }
	.scrolling-row::-webkit-scrollbar-track { background: transparent; }
	.scrolling-row::-webkit-scrollbar-thumb {
		background-color: var(--border-light);
		border-radius: 10px;
		border: 2px solid transparent;
		background-clip: content-box;
	}

.property-grid > *,
.city-grid > * {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 280px;
}

/* Empty state text */
.empty-state,
.loading-text {
	padding: var(--spacing-md);
	color: var(--text-muted);
	font-style: italic;
}

/* -------------------------------------------------------------------------
 * 12. Recent Searches Section
 * ------------------------------------------------------------------------- */
.recent-searches {
	padding: var(--spacing-xxl) 0;
	background-color: var(--bg-light-accent);
}

.searches-grid {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 1rem;
}

.search-card {
	flex: 0 0 240px;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

	.search-card h3 {
		font-size: 1.1rem;
		margin-bottom: 0.5rem;
		color: #333;
		line-height: 1.2;
	}

	.search-card p {
		font-size: 0.9rem;
		color: #666;
		margin-bottom: 1rem;
	}

.btn-search-again {
	display: inline-block;
	padding: 0.5rem 1rem;
	text-align: center;
	background: var(--home3-orange);
	color: #fff;
	border-radius: var(--radius-md);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background 0.2s;
}

	.btn-search-again:hover {
		background: var(--home3-orange-dark);
	}

/* -------------------------------------------------------------------------
 * 13. Discovery Summary Section
 * ------------------------------------------------------------------------- */
.discovery-summary {
	padding: var(--spacing-xxl) 0;
	background: var(--bg-light-accent);
}

	.discovery-summary .discovery-cards {
		display: flex;
		gap: 1rem;
		overflow-x: auto;
		padding-bottom: 1rem;
	}

.discovery-card {
	flex: 0 0 240px;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.discovery-card h3 {
	font-size: 1.1rem;
	margin: 0.75rem;
	color: #333;
}

.discovery-card-address {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0.75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.discovery-card .btn-see-more {
	margin: 0.75rem;
	padding: 0.5rem;
	text-align: center;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * 14. Explore by City Section
 * ------------------------------------------------------------------------- */
.explore-city {
	padding: var(--spacing-xxl) 0;
	background-color: var(--bg-light-accent);
}

.city-grid {
	flex-basis: 100%;
	width: 100%;
	clear: both;
	padding-top: var(--spacing-lg);
}

.city-card {
	background-color: var(--bg-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

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

	.city-card .city-image {
		height: 180px;
		width: 100%;
		object-fit: cover;
		background-color: #ddd;
		border-bottom: 1px solid var(--border-light);
	}

	.city-card .city-info {
		padding: var(--spacing-md);
		flex-grow: 1;
		display: flex;
		flex-direction: column;
	}

	.city-card h3 {
		margin: 0 0 var(--spacing-xs);
		font-size: 1.2em;
		font-family: var(--font-body);
		font-weight: 600;
		color: var(--text-dark);
	}

	.city-card p {
		font-size: 0.9em;
		color: var(--text-muted);
		margin: 0 0 var(--spacing-md);
	}

/* -------------------------------------------------------------------------
 * 15. Responsive Styles
 * ------------------------------------------------------------------------- */
@media (max-width: 992px) {
	.ai-chat-hero-content {
		padding: var(--spacing-xl) var(--spacing-lg);
	}

	.ai-chat-text-section h1 {
		font-size: 2em;
	}

	.ai-chat-interface {
		max-width: 700px;
	}

	.property-grid > *, .city-grid > * {
		width: 260px;
	}
}

@media (max-width: 768px) {
	/* Mobile Nav */
	.nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 60px;
		left: 0;
		width: 100%;
		background-color: var(--bg-light);
		padding: var(--spacing-sm) 0;
		box-shadow: var(--shadow-md);
		z-index: 999;
		gap: 0;
	}

	.user-actions {
		display: none;
	}

	.nav-links.visible {
		display: flex;
	}

	.nav-links li {
		padding: var(--spacing-sm) var(--spacing-lg);
		width: 100%;
		text-align: left;
		border-bottom: 1px solid var(--border-light);
	}

		.nav-links li:last-child {
			border-bottom: none;
		}

	.menu-toggle {
		display: block;
		margin-left: auto;
	}

	.ai-chat-text-section h1 {
		font-size: 1.8em;
	}

	.ai-chat-interface {
		max-width: 100%;
		margin: 0;
	}

	.search-suggestions {
		flex-direction: column;
		gap: var(--spacing-sm);
		align-items: center;
	}

	.property-grid > *, .city-grid > * {
		width: 240px;
	}

	/* Stack sections vertically */
	.property-listings > .container,
	.explore-city > .container {
		display: flex !important;
		flex-direction: column;
	}

	.property-listings .tabs,
	.explore-city .section-title {
		flex: 0 0 auto;
		width: 100%;
		margin-bottom: var(--spacing-lg);
	}

	.property-listings .scrolling-row.property-grid,
	.explore-city .scrolling-row.city-grid {
		flex: 1 0 auto;
		width: 100%;
	}

	/* Toast positioning on mobile */
	#toast-container {
		left: var(--spacing-md);
		right: var(--spacing-md);
	}

	.toast {
		max-width: 100%;
	}

	/* User greeting hide on very small screens */
	.user-greeting {
		display: none;
	}
}

@media (max-width: 480px) {
	.ai-chat-text-section h1 {
		font-size: 1.5em;
	}

	.ai-chat-bubble {
		font-size: 0.9em;
		padding: 10px 12px;
	}

	.property-grid > *, .city-grid > * {
		width: 220px;
	}
}

/* =========================================================================
 * Collections Tab
 * ========================================================================= */

.collections-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--spacing-md);
}

.btn-create-collection {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	border: none;
	background: var(--home3-orange, #f66a35);
	color: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.15s;
}

.btn-create-collection:hover { background: #e55a25; }

.collections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--spacing-md);
}

.collection-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: var(--spacing-md);
	background: #fff;
	border: 1px solid var(--border-light, #eee);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	position: relative;
}

.collection-card:hover {
	border-color: var(--home3-orange, #f66a35);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.coll-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.coll-info { flex: 1; min-width: 0; }
.coll-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; }
.coll-sub { font-size: 0.8rem; color: var(--text-muted, #999); }

.coll-menu { position: relative; }

.coll-menu-btn {
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	color: var(--text-muted, #999);
	border-radius: 4px;
}

.coll-menu-btn:hover { background: #f0f0f0; }

.coll-menu-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	z-index: 50;
	min-width: 140px;
	overflow: hidden;
}

.coll-menu-dropdown button {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	border: none;
	background: none;
	text-align: left;
	font-size: 0.875rem;
	cursor: pointer;
}

.coll-menu-dropdown button:hover { background: #f8f8f8; }

/* Collection detail modal property cards */
.coll-prop-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	transition: background 0.1s;
	position: relative;
}

.coll-prop-card:hover { background: #fafafa; }

.coll-prop-img {
	width: 72px;
	height: 54px;
	border-radius: 8px;
	background: #f0f0f0 center / cover no-repeat;
	flex-shrink: 0;
}

.coll-prop-info { flex: 1; min-width: 0; }
.coll-prop-price { font-weight: 600; font-size: 0.95rem; }
.coll-prop-stats { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 0.5rem; }
.coll-prop-addr { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.coll-prop-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-muted);
	padding: 0.25rem;
	border-radius: 4px;
	flex-shrink: 0;
}

.coll-prop-remove:hover { color: #dc2626; background: #fef2f2; }

/* Color swatches for create collection */
.color-swatches {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.15s, transform 0.1s;
}

.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #333; transform: scale(1.15); }

/* =========================================================================
 * Sort Toolbar
 * ========================================================================= */

.saved-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: var(--spacing-md);
	flex-wrap: wrap;
}

.sort-select {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border-light, #ddd);
	border-radius: 8px;
	font-size: 0.85rem;
	font-family: inherit;
	background: #fff;
	cursor: pointer;
	color: var(--text-muted, #666);
}

.sort-select:focus { outline: none; border-color: var(--home3-orange); }

.btn-compare {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--border-light, #ddd);
	background: #fff;
	font-size: 0.85rem;
	font-family: inherit;
	cursor: pointer;
	color: var(--text-muted, #666);
	transition: border-color 0.15s, background 0.15s;
}

.btn-compare:hover { border-color: var(--home3-orange); color: var(--home3-orange); }
.btn-compare.active { border-color: var(--home3-orange); background: var(--home3-orange); color: #fff; }

/* =========================================================================
 * Compare Mode
 * ========================================================================= */

.compare-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem var(--spacing-md);
	background: #fff8f4;
	border: 1px solid var(--home3-orange, #f66a35);
	border-radius: 8px;
	margin-bottom: var(--spacing-md);
	font-size: 0.875rem;
}

.compare-bar .btn-link {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 0.85rem;
}

.list-view-card.compare-mode { cursor: pointer; }

.list-view-card.compare-selected {
	outline: 3px solid var(--home3-orange, #f66a35);
	outline-offset: -3px;
}

/* =========================================================================
 * Toast Action Button
 * ========================================================================= */

.toast-action {
	margin-left: 0.75rem;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	cursor: pointer;
	white-space: nowrap;
}

.toast-action:hover { background: rgba(255, 255, 255, 0.15); }

/* =========================================================================
 * Empty State (shared)
 * ========================================================================= */

.empty-state {
	text-align: center;
	padding: 2.5rem var(--spacing-md);
	color: var(--text-muted, #999);
}

.empty-state p:first-of-type { font-weight: 500; font-size: 1rem; color: var(--text-dark, #333); }

/* =========================================================================
 * Shared User Rows (share modal)
 * ========================================================================= */

.shared-user-row + .shared-user-row { border-top: none; }
