/**
 * Agent Archive & Single Page Styles
 */

/* ==========================================================================
   Agent Archive Page
   ========================================================================== */

.agents-page .page-container {
	padding-bottom: 80px;
}

.agents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 32px;
	margin-bottom: 60px;
}

.agent-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.agent-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.agent-image {
	position: relative;
	height: 300px;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.agent-image img.agent-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.agent-card:hover .agent-photo {
	transform: scale(1.05);
}

.agent-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #cbd5e1;
}

.agent-content {
	padding: 24px;
}

.agent-name {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.agent-position {
	color: #3b82f6;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 12px;
}

.agent-experience {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #64748b;
	margin-bottom: 16px;
}

.agent-experience svg {
	color: #f59e0b;
}

.agent-excerpt {
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.agent-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #f8fafc;
	color: #475569;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.contact-btn:hover {
	background: #3b82f6;
	color: #fff;
	transform: translateY(-2px);
}

.whatsapp-btn:hover {
	background: #25d366;
}

.view-profile-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #3b82f6;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.view-profile-btn:hover {
	gap: 12px;
	color: #2563eb;
}

.no-agents {
	text-align: center;
	padding: 80px 20px;
	color: #94a3b8;
}

.no-agents svg {
	opacity: 0.3;
	margin-bottom: 24px;
}

.no-agents h2 {
	font-size: 24px;
	color: #475569;
	margin-bottom: 12px;
}

/* ==========================================================================
   Single Agent Page
   ========================================================================== */

.single-agent-page {
	background: #fff;
}

.agent-hero {
	background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
	margin-bottom: 0;
}

.agent-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.agent-hero-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	position: relative;
	z-index: 1;
}

.agent-hero-info {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 48px;
	align-items: start;
}

.agent-hero-image {
	width: 300px;
	height: 300px;
	border-radius: 20px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.15);
	border: 4px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.agent-placeholder-large {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(255, 255, 255, 0.5);
}

.agent-title {
	font-size: 48px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.2;
}

.agent-subtitle {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 32px;
	font-weight: 500;
}

.agent-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-bottom: 32px;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
}

.stat-item svg {
	color: #fbbf24;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.agent-social {
	display: flex;
	gap: 12px;
}

.social-link {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	color: #fff;
	transition: all 0.3s ease;
}

.social-link:hover {
	background: #fff;
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
	color: #1877f2;
}

.social-link.twitter:hover {
	color: #1da1f2;
}

.social-link.instagram:hover {
	color: #e4405f;
}

.social-link.linkedin:hover {
	color: #0077b5;
}

.agent-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 32px 80px;
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 48px;
}

.agent-main-content {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.agent-about {
	margin-bottom: 60px;
}

.agent-about h2,
.agent-listings h2 {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 24px;
	padding-bottom: 16px;
	border-bottom: 3px solid #e2e8f0;
	position: relative;
}

.agent-about h2::after,
.agent-listings h2::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 80px;
	height: 3px;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.agent-description {
	color: #334155;
	font-size: 16px;
	line-height: 1.8;
}

.agent-listings {
	margin-top: 0;
}

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

.agent-sidebar {
	position: sticky;
	top: 32px;
}

.agent-contact-card {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
}

.agent-contact-card h3 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 24px;
}

.contact-item {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid #e2e8f0;
}

.contact-item:first-of-type {
	padding-top: 0;
}

.contact-item:last-of-type {
	border-bottom: none;
	padding-bottom: 24px;
}

.contact-item svg {
	color: #3b82f6;
	flex-shrink: 0;
	margin-top: 2px;
}

.contact-item div {
	flex: 1;
}

.contact-item label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 6px;
}

.contact-item a {
	color: #0f172a;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
	display: block;
}

.contact-item a:hover {
	color: #3b82f6;
}

.whatsapp-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #25d366, #20ba5a);
	color: #fff;
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: 8px;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-contact-btn:hover {
	background: linear-gradient(135deg, #20ba5a, #1ca84f);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-contact-btn svg {
	width: 22px;
	height: 22px;
}

/* Responsive */
@media (max-width: 992px) {
	.agent-content-wrapper {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.agent-sidebar {
		position: static;
	}
	
	.agent-hero-info {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 32px;
	}
	
	.agent-hero-image {
		margin: 0 auto;
	}
	
	.agent-stats,
	.agent-social {
		justify-content: center;
	}
	
	.properties-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

@media (max-width: 768px) {
	.agents-grid {
		grid-template-columns: 1fr;
	}
	
	.agent-hero {
		padding: 60px 0;
	}
	
	.agent-hero-content {
		padding: 0 20px;
	}
	
	.agent-hero-image {
		width: 240px;
		height: 240px;
	}
	
	.agent-title {
		font-size: 36px;
	}
	
	.agent-subtitle {
		font-size: 18px;
	}
	
	.agent-content-wrapper {
		padding: 40px 20px 60px;
	}
	
	.agent-about h2,
	.agent-listings h2 {
		font-size: 26px;
	}
	
	.properties-grid {
		grid-template-columns: 1fr;
	}
	
	.agent-contact-card {
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.agent-title {
		font-size: 28px;
	}
	
	.agent-subtitle {
		font-size: 16px;
	}
	
	.agent-hero-image {
		width: 200px;
		height: 200px;
	}
	
	.social-link {
		width: 42px;
		height: 42px;
	}
}
