/**
 * Single Agent Template Styles
 */

:root {
	--color-primary: #002349;
}

hr.divider {
	margin: 1.6rem 0 1.4rem;
	width: 80px;
	border: 0;
	border-top: 1px solid var(--color-primary);
	background: none;
}

/* ==========================================================================
   Agent Header Section
   ========================================================================== */

.agent-header {
	background-color: var(--color-primary);
	color: #ffffff;
	padding: 3rem 0;
	margin-top: 76px;
	min-height: 310px;
}

.agent-header-content {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding: 1rem;
	align-items: center;
}

.agent-info-left {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.agent-address {
	font-size: 0.85rem;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

.agent-name {
	font-family: var(--sir-font-serif);
	font-size: 3.5rem;
	font-weight: 400;
	line-height: 1.1;
	margin: 0;
	color: #ffffff;
}

.agent-title {
	font-size: 1.1rem;
	font-weight: 300;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

.send-message-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #ffffff;
	color: var(--color-primary);
	padding: 1rem 2rem;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	width: fit-content;
	margin-top: 1rem;
}

.send-message-btn:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateX(5px);
}

.send-message-btn .arrow {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.send-message-btn:hover .arrow {
	transform: translateX(5px);
}

.agent-info-right {
	display: flex;
	justify-content: flex-end;
}

.agent-info-right .agent-photo {
	width: 100%;
	max-width: 500px;
	height: auto;
	object-fit: cover;
}

@media (max-width: 992px) {
	.agent-header-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.agent-name {
		font-size: 2.5rem;
	}

	.agent-info-right {
		justify-content: center;
	}

	.agent-info-right .agent-photo {
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	.agent-header {
		padding: 2rem 1.5rem;
		min-height: auto;
		margin-top: 60px;
	}

	.agent-header-content {
		padding: 0;
	}

	.agent-name {
		font-size: 2rem;
	}

	.agent-address {
		font-size: 0.75rem;
	}

	.send-message-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   About Me Section
   ========================================================================== */

.about-me-section {
	margin: 0 auto;
	background: #ffffff;
}

.about-me-content {
	display: flex;
	gap: 2rem;
	padding: 1rem;
	margin: 0 auto;
}

.about-me-content-left {

	flex-grow: 1;
}

.about-me-content-right {

	width: 443px;
	flex-shrink: 0;
	margin-top: -310px;
}

.about-me-content-right img,
.about-me-content-right .agent-photo-placeholder {
	aspect-ratio: 443 / 511;
	object-fit: cover;
	width: 443px;
}

.about-me-content-right img {
	object-position: center top;
}

.about-me-content-right .agent-photo-placeholder {
	background: #f0f0f0;
	display: block;
}

.section-title {
	font-family: var(--sir-font-serif);
	font-size: 1.8rem;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0 0 1.5rem 0;
}

.agent-bio {
	font-size: 1rem;
	line-height: 1.8;
	color: #333;
}

.agent-bio p {
	margin: 0 0 1rem 0;
}

.agent-bio p:last-child {
	margin-bottom: 0;
}

@media (max-width: 992px) {
	.about-me-content {
		flex-direction: column;
	}

	.about-me-content-right {
		width: 100%;
		margin-top: 0;
		order: -1;
	}

	.about-me-content-right img,
	.about-me-content-right .agent-photo-placeholder {
		width: 100%;
		max-width: 443px;
	}
}

@media (max-width: 768px) {
	.about-me-content {
		padding: 1.5rem;
		gap: 1.5rem;
	}

	.about-me-content-right img,
	.about-me-content-right .agent-photo-placeholder {
		max-width: 100%;
	}

	.section-title {
		font-size: 1.4rem;
	}

	.agent-bio {
		font-size: 0.9rem;
		line-height: 1.7;
	}
}

/* ==========================================================================
   Company Info Section
   ========================================================================== */

.company-info-section {
	padding: 3rem 2rem;
	background: #f8f8f8;
	border-top: 1px solid #e0e0e0;
}

.company-info-content {
	max-width: 1000px;
	margin: 0 auto;
}

.company-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary);
	letter-spacing: 1px;
	margin: 0 0 0.5rem 0;
}

.company-address {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.6;
}

.company-address:after {
	content: '';
	display: block;
	width: 150px;
	height: 1px;
	background: var(--color-primary);
	margin: 1rem 0
}

.company-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.25rem;
}

.contact-item {
	margin: 0;
	font-size: 0.95rem;
}

.contact-label {
	font-weight: 600;
	color: var(--color-primary);
	margin-right: 0.5rem;
}

.contact-item a {
	color: #333;
	text-decoration: none;
}

.contact-item a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.about-me-content-right .company-info-content {
		padding: 0;
		margin-top: 1.5rem;
	}

	.company-info-section {
		padding: 2rem 1.5rem;
	}

	.company-contact {
		grid-template-columns: 1fr;
	}

	.contact-item {
		font-size: 0.85rem;
	}
}

/* ==========================================================================
   Agent Properties Section
   ========================================================================== */

.agent-properties-section {
	padding: 4rem 2rem;
	background: #ffffff;
}

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

.properties-title {
	font-family: var(--sir-font-serif);
	font-size: 2rem;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0;
}

.properties-controls {
	display: flex;
	gap: 2rem;
	align-items: center;
}

/* Properties Search */
input[type="text"].properties-search-input {
	width: 220px;
	padding: 0.65rem 1rem 0.65rem 2.25rem;
	border: 1px solid #d0d0d0;
	border-radius: 0;
	font-size: 0.85rem;
	font-family: inherit;
	color: #333;
	transition: border-color 0.3s ease;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="8"%3E%3C/circle%3E%3Cpath d="m21 21-4.35-4.35"%3E%3C/path%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: 0.6rem center;
	background-size: 14px;
}

.properties-search-input:focus {
	outline: none;
	border-color: var(--color-primary);
}

.properties-search-input::placeholder {
	color: #999;
}

.property-card.hidden {
	display: none !important;
}

.properties-no-results {
	display: none;
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 2rem 0;
}

.properties-no-results.visible {
	display: block;
}

.buy-rent-toggle {
	display: flex;
	gap: 0;
	border: 1px solid var(--color-primary);
	border-radius: 0.25rem;
}

.toggle-btn {
	background: #ffffff;
	border: none;
	color: var(--color-primary);
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	letter-spacing: 1px;
	border-radius: 0;
}

.toggle-btn:first-child {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
  }

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

.toggle-btn:last-child {
	border-bottom-right-radius: 0.25rem;
	border-top-right-radius: 0.25rem;
}

.toggle-btn.active {
	background: var(--color-primary);
	color: #ffffff;
}

.toggle-btn:hover:not(.active) {
	background: rgba(0, 35, 73, 0.1);
}

.filter-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.filter-wrapper label {
	font-size: 0.9rem;
	color: #666;
	font-weight: 500;
}

.filter-dropdown {
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	border: 1px solid #d0d0d0;
	border-radius: 2px;
	font-size: 0.9rem;
	cursor: pointer;
	background-color: #ffffff;
	background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'12\' height=\'12\' viewBox=\'0 0 12 12\'%3E%3Cpath fill=\'%23333\' d=\'M6 9L1 4h10z\'/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	appearance: none;
}

/* Property Grid */
.property-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.property-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	overflow: hidden;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

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

.property-card-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f0f0f0;
}

.property-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
}

.property-card-image img.loaded {
	opacity: 1;
}

.property-card:hover .property-card-image img {
	transform: scale(1.05);
}

.property-card-content {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.property-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-primary);
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0.5px;
}

.property-card-location {
	font-size: 0.85rem;
	color: #666;
	margin: 0;
	letter-spacing: 0.3px;
}

.property-card-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0.5rem 0;
}

.price-main {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-primary);
}

.price-secondary {
	font-size: 0.95rem;
	color: #666;
}

/* Preferred currency (set by preferences-apply.js) */
.price-preferred {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-primary);
	order: -1;
}

.price-other {
	font-size: 0.95rem;
	color: #666;
	font-weight: 400;
}

.property-card-details {
	font-size: 0.85rem;
	color: #666;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.detail-item {
	white-space: nowrap;
}

.detail-separator {
	margin: 0 0.25rem;
}

.no-properties {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 2rem;
	color: #666;
}

.no-properties p {
	font-size: 1.1rem;
}

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

.pagination a,
.pagination span {
	padding: 0.75rem 1rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	color: var(--color-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination a:hover {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}

.pagination .current {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}

@media (max-width: 768px) {
	.agent-properties-section {
		padding: 2rem 1.5rem;
	}

	.properties-header {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 1.5rem;
		gap: 1rem;
	}

	.properties-title {
		font-size: 1.4rem;
	}

	.properties-controls {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.properties-search-input {
		width: 100%;
	}

	.buy-rent-toggle {
		width: 100%;
	}

	.toggle-btn {
		flex: 1;
		padding: 0.6rem 1rem;
		font-size: 0.8rem;
	}

	.filter-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.filter-dropdown {
		width: 100%;
	}

	.property-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ==========================================================================
   Agent Contact Form Section
   ========================================================================== */

.agent-contact-form-section {
	padding: 4rem 2rem;
	background: #f8f8f8;
}

.contact-form-wrapper {
	max-width: 800px;
	margin: 0 auto;
	background: #ffffff;
	padding: 3rem;
	border: 1px solid #e0e0e0;
}

.form-title {
	font-family: var(--sir-font-serif);
	font-size: 1.8rem;
	font-weight: 400;
	color: var(--color-primary);
	margin: 0 0 2rem 0;
	text-align: center;
}

.agent-contact-form .form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.agent-contact-form .form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.agent-contact-form .form-group.full-width {
	grid-column: 1 / -1;
}

.agent-contact-form label {
	font-size: 0.9rem;
	color: #333;
	font-weight: 400;
}

.agent-contact-form input,
.agent-contact-form textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid #d0d0d0;
	border-radius: 2px;
	font-size: 0.95rem;
	font-family: inherit;
	transition: border-color 0.3s ease;
	background: #ffffff;
}

.agent-contact-form input:focus,
.agent-contact-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

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

.honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.form-actions {
	margin-top: 2rem;
}

.submit-btn {
	background: var(--color-primary);
	color: #ffffff;
	padding: 1rem 2.5rem;
	border: none;
	border-radius: 2px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	text-transform: uppercase;
}

.submit-btn:hover {
	background: #001a30;
}

.submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 4px;
	text-align: center;
	font-size: 0.95rem;
	display: none;
}

.form-message.success {
	display: block;
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message.error {
	display: block;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
	.contact-form-wrapper {
		padding: 2rem 1.5rem;
	}

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

/* ==========================================================================
   Agents Archive Page
   ========================================================================== */

/* Agents Hero Section - Compact */
.agents-hero {
	background: url('/wp-content/themes/sir/assets/images/title-background.png') no-repeat center center;
	background-size: cover;
	color: #ffffff;
	padding: 0;
	margin-top: 76px;
	position: relative;
}

.agents-hero-content {
	max-width: 1600px;
	margin: 0 auto;
	/* Right padding reserves the 25% blue block (now full-bleed/absolute) so the
	   title never runs under it; left 2rem matches the search bar / list inner. */
	padding: 3rem 25% 3rem 2rem;
	position: relative;
	z-index: 1;
}

.agents-hero .blue {
	background: var(--color-primary);
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 25%;
}

.agents-hero-title {
	font-family: var(--sir-font-serif);
	font-size: 2rem;
	font-weight: 500 !important;
	line-height: 1.3;
	margin: 0;
	color: var(--color-primary);
}

@media (max-width: 768px) {
	.agents-hero {
		padding: 0;
	}

	.agents-hero .blue {
		display: none;
	}

	.agents-hero-content {
		padding: 2rem 1rem;
	}

	.agents-hero-title {
		font-size: 1.4rem;
	}
}

/* Sticky Search Bar */
.agents-search-bar {
	background: #ffffff;
	position: sticky;
	top: 76px;
	z-index: 100;
	padding: 1rem 0;
}

.agents-search-bar.is-sticky {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.agents-search-bar-inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
}

.agents-search-form {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-primary);
	background: #ffffff;
}

/* Desktop: narrow the search to the agents content-column width (full width minus
   the 400px metas sidebar + 1rem gap of .agents-list-section) but keep it centered.
   Below 992px the list stacks (metas full-width), so the search stays full-width. */
@media (min-width: 993px) {
	.agents-search-form {
		max-width: calc(100% - 400px - 1rem);
		margin-left: auto;
		margin-right: auto;
	}
}

.agents-search-form .search-icon {
	margin-left: 1rem;
	color: var(--color-primary);
	flex-shrink: 0;
}

.agents-search-input {
	flex: 1;
	padding: 0.875rem 1rem;
	border: none;
	height: 38px;
	font-size: 0.85rem;
	color: #333;
	outline: none;
	letter-spacing: 0.5px;
	background: transparent;
	border: 0 !important;
}

.agents-search-input::placeholder {
	color: #999;
	letter-spacing: 1px;
}

.search-clear {
	padding: 0.5rem 1rem;
	color: #999;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
}

.search-clear:hover {
	color: #333;
}

@media (max-width: 768px) {
	.agents-search-bar {
		top: 60px;
	}

	.agents-search-bar-inner {
		padding: 0 1rem;
	}
}

/* Agents List Section */
.agents-list-section {
	padding: 0 2rem 3rem;
	background: #ffffff;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	gap: 1rem;
}

.agent-list-metas {
	width: 400px;
	flex-shrink: 0;
}

.agent-list-content {
	flex-grow: 1;
}

.agents-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	flex-wrap: wrap;
	gap: 1rem;
}

.agents-list-header-left {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.agents-list-title {
	font-family: var(--sir-font-serif);
	font-size: 1.65rem;
	font-weight: 500;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

.agents-results-count {
	font-size: 1rem;
	color: #010202;
	font-family: var(--sir-font-sans);
}

.agents-list-header-right {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.agents-location-label {
	font-family: var(--sir-font-serif);
	font-size: 1.15rem;
	color: var(--color-primary);
}

.agents-filter-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.agents-filter-wrapper label {
	font-size: 0.8rem;
	color: #666;
}

.agents-filter-select {
	padding: 0.4rem 2rem 0.4rem 0.75rem;
	border: 1px solid #d0d0d0;
	font-size: 0.8rem;
	background-color: #ffffff;
	background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 12 12"%3E%3Cpath fill="%23333" d="M6 9L1 4h10z"/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	appearance: none;
	cursor: pointer;
}

/* Tablet (landscape): shrink the metas sidebar so the list column gets more
   room. Keep .agents-search-form's calc in sync with the same width. */
@media (min-width: 993px) and (max-width: 1200px) {
	.agent-list-metas {
		width: 300px;
	}

	.agents-search-form {
		max-width: calc(100% - 300px - 1rem);
	}
}

@media (max-width: 992px) {
	.agents-list-section {
		flex-direction: column;
	}

	.agent-list-metas {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.agents-list-section {
		padding: 0 1rem 2rem;
	}

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

	.agents-list-header-right {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

/* Agents List - Row Layout */
.agents-list {
	display: flex;
	flex-direction: column;
}

.agent-row {
	display: grid;
	grid-template-columns: 154px minmax(0, 1fr) 200px;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #e0e0e0;
	align-items: center;
}

/* Agent Photo */
.agent-row-photo {
	width: 154px;
	height: 177px;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.agent-row-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.agent-row-photo a {
	display: block;
	width: 100%;
	height: 100%;
}

.agent-row-placeholder {
	width: 100%;
	height: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #ccc;
}

/* Agent Info */
.agent-row-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding-top: 0.25rem;
	min-width: 0;
}

.agent-row-name {
	font-family: var(--sir-font-serif);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: 1px;
	margin-bottom: 0.5rem;
}

.agent-row-name a {
	color: inherit;
	text-decoration: none;
}

.agent-row-title {
	font-family: var(--sir-font-serif);
	font-size: 0.85rem;
	color: #575757;
	font-weight: 600;
	margin: 0;
	letter-spacing: 1px;
	font-style: normal;
}

.agent-row-properties {
	font-size: 0.8rem;
	color: #002349;
	font-weight: 600;
	margin: 0.35rem 0 0;
}

.agent-row-contact {
	font-size: 0.95rem;
	margin: 0.15rem 0 0 0;
	color: #010202;
	letter-spacing: 1px;
	overflow-wrap: anywhere;
}

.agent-row-contact .contact-label {
	color: #010202;
}

.agent-row-contact a {
	color: #010202;
	text-decoration: none;
}

.agent-row-contact a:hover {
	text-decoration: underline;
}

/* Agent Office */
.agent-row-office {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	text-align: right;
	font-size: 0.75rem;
	padding-top: 0.25rem;
}

.agent-row-company {
	font-weight: 500;
	font-size: 0.95rem;
	color: #9c9c9c;
	letter-spacing: 1px;
	margin: 0;
	line-height: 1.3;
}

.agent-row-address {
	color: #010202;
	letter-spacing: 1px;
	line-height: 1.4;
	font-weight: 500;
	font-size: 1rem;
	margin-bottom: 3rem;
}

.agent-row-message-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	color: var(--color-primary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.agent-row-message-link:hover {
	color: #001a30;
}

.agent-row-message-link .arrow {
	transition: transform 0.3s ease;
}

.agent-row-message-link:hover .arrow {
	transform: translateX(3px);
}

/* No Agents */
.no-agents {
	text-align: center;
	padding: 4rem 2rem;
	color: #666;
}

.no-agents p {
	font-size: 1rem;
	margin: 0 0 1rem 0;
}

.clear-search-link {
	color: var(--color-primary);
	text-decoration: underline;
}

/* Agents Pagination */
.agents-pagination {
	margin: 2rem 0 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
}

.agents-pagination a,
.agents-pagination span {
	padding: 0.5rem 0.75rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	color: var(--color-primary);
	text-decoration: none;
	font-size: 0.85rem;
	min-width: 36px;
	text-align: center;
}

.agents-pagination a:hover {
	background: #f5f5f5;
}

.agents-pagination .current {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}

.agents-pagination .pagination-prev,
.agents-pagination .pagination-next {
	color: #999;
	border-color: #e0e0e0;
}

.agents-pagination .dots {
	border: none;
	padding: 0.5rem 0.25rem;
}

/* Responsive Agents Archive */
@media (max-width: 992px) {
	.agent-row {
		grid-template-columns: 90px minmax(0, 1fr) 180px;
		gap: 1rem;
	}

	.agent-row-photo {
		width: 90px;
		height: 90px;
	}

	.agent-row-office {
		font-size: 0.7rem;
	}
}

@media (max-width: 768px) {
	.agent-row {
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 0.75rem;
		padding: 1rem 0;
	}

	.agent-row-photo {
		width: 80px;
		height: 80px;
	}

	.agent-row-info {
		gap: 0.1rem;
	}

	.agent-row-info hr.divider {
		margin: 0.5rem 0;
	}

	.agent-row-name {
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	.agent-row-contact {
		font-size: 0.8rem;
		letter-spacing: 0.5px;
	}

	.agent-row-office {
		grid-column: 1 / -1;
		text-align: left;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.25rem;
		padding-top: 0.75rem;
		border-top: 1px dashed #e0e0e0;
		margin-top: 0.25rem;
	}

	.agent-row-company {
		flex-basis: 100%;
		font-size: 0.8rem;
	}

	.agent-row-address {
		flex-basis: 100%;
		font-size: 0.85rem;
		margin-bottom: 0.5rem;
	}

	.agent-row-message-link {
		justify-content: flex-start;
	}
}
