/*
 Theme Name:   OceanWP Child
 Theme URI:    https://oceanwp.org/
 Description:  Child theme for OceanWP - Broker Search template
 Author:       Broker
 Template:     oceanwp
 Version:      1.0.0
 Text Domain:  oceanwp-child
*/

/* ============================================
   Broker Search – full page design
   ============================================ */

.broker-search-page {
	background: #fff;
	min-height: 60vh;
	padding: 2rem 0 3rem;
}

.broker-search-page .site-main {
	padding: 0;
}

.broker-search-wrap {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0;
}

.broker-search-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.broker-search-title {
	text-align: center;
	font-size: 2.25rem;
	font-weight: 700;
	color: #1D2B45;
	margin: 0 0 1.5rem;
	line-height: 1.2;
}

.broker-search-intro {
	font-size: 1.0625rem;
	color: #495057;
	margin: 0;
	line-height: 1.5;
}

.broker-search-section {
	margin-bottom: 2rem;
}

.broker-search-form {
    background: #F0F0F0;
    border-radius: 16px;
    padding: 3rem 5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.broker-search-label {
	display: block;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1D2B45;
	margin-bottom: 0.75rem;
}

.broker-search-row {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.broker-search-input {
	flex: 1;
	min-width: 0;
	padding: 14px 18px;
	font-size: 1.6rem;
	border: 1px solid #e0e0e0;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
}

.broker-search-input::placeholder {
	color: #9e9e9e;
	font-style: normal;
}

.broker-search-input:focus {
	outline: none;
	border-color: #bdbdbd;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.broker-search-btn {
	background: #F42941;
	color: #fff;
	border: none;
	padding: 14px 24px;
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	height: auto;
}

.broker-search-btn:hover {
	background: #d02852;
	color: #fff;
}

.broker-search-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(230, 47, 94, 0.4);
}

/* Filter dropdowns – same as attachment */
.broker-search-filters {
	margin-bottom: 2rem;
	max-width: 100%;
}

.broker-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.5rem;
}

.broker-filter-item {
	flex: 1;
	min-width: 180px;
	max-width: 33.33%;
}

.broker-filter-label {
	display: block;
	font-size: 1.4rem;
	font-weight: 500;
	color: #2a2a2a;
	margin-bottom: 0.5rem;
}

.broker-filter-select {
	width: 100%;
	padding: 12px 36px 12px 16px;
	font-size: 1.4rem;
	color: #1a1a1a;
	background-color: #f5f5f5;
	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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #c7c6c6;
    border-radius: 15px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    min-height: 55px;
}

.broker-filter-select:focus {
	outline: none;
	border-color: #bdbdbd;
}

.broker-filter-select option {
	color: #1a1a1a;
	background: #fff;
}

.broker-search-results {
	min-height: 120px;
}

.broker-search-results.loading {
	opacity: 0.7;
	pointer-events: none;
}

.broker-search-loading-initial {
	text-align: center;
	color: #575757;
	padding: 2rem;
	font-size: 1.0625rem;
	margin: 0;
}

/* Broker result cards – same as attachment */
.broker-search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.broker-search-results-list .broker-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 3rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 27%);
    align-items: flex-start;
}

.broker-card-left {
	flex-shrink: 0;
	width: 120px;
	text-align: center;
}

.broker-card-avatar-wrap {
	width: 100%;
	height: 132px;
	margin: 0 auto 0.75rem;
	border-radius: 50%;
	background: #dc3545;
	padding: 4px;
	box-sizing: border-box;
}

.broker-card-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: #fff;
}

.broker-card-rating {
	font-size: 0.9375rem;
	color: #212529;
}

.broker-card-stars {
	color: #dc3545;
	letter-spacing: 1px;
	display: block;
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.2rem;
}

.broker-card-rating-text {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.broker-card-content {
	flex: 1;
	min-width: 0;
}

.broker-card-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 0.85rem;
}

.broker-card-headings {
	flex: 1;
	min-width: 0;
}

.broker-card-name {
	margin: 0 0 0.25rem;
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.broker-card-company {
    margin: 0;
    font-size: 18px;
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.3;
    text-transform: capitalize;
}

.broker-card-phone {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.broker-card-phone a {
    color: #000;
    text-decoration: none;
    font-size: 1.8rem;
}

.broker-card-phone a:hover {
	color: #000;
	text-decoration: none;
	font-size: 1.8rem;
	font-weight: 500;
	white-space: nowrap;
}

.broker-card-phone-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border: 2px solid #000;
	border-radius: 50%;
	flex-shrink: 0;
}

.broker-card-phone .broker-card-icon-phone {
	background-color: #000;
	width: 16px;
	height: 16px;
}

.broker-card-bottom {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.2fr;
	column-gap: 1.5rem;
	align-items: start;
}

.broker-card-bio-wrap {
	min-width: 0;
}

.broker-card-bio {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.5;
	color: #2a2a2a;
	font-weight: 400;
}

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

.broker-card-details-wrap,
.broker-card-services-wrap {
	min-width: 0;
}

.broker-card-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-color: #dc3545;
}

.broker-card-icon-phone {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.broker-card-icon-pin {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.broker-card-icon-check {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.broker-card-icon-clock {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
}

.broker-card-icon-doc {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E") center/contain no-repeat;
}

.broker-card-btn {
    display: inline-block;
    background: #F42941;
    color: #fff !important;
    border: none;
    padding: 1.5rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 28px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.broker-card-btn:hover {
	background: #ce2651;
	color: #fff !important;
}

.broker-card-attrs {
	list-style: none;
	margin: 0;
	padding: 0;
}

.broker-card-attrs li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1.5rem;
	color: #2a2a2a;
	margin-bottom: 0.28rem;
	line-height: 1.35;
}

.broker-card-attrs .broker-card-icon {
	width: 14px;
	height: 14px;
}

.broker-card-distance {
	font-weight: 600;
	color: #F42941;
}

.broker-card-services-title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #2a2a2a;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	line-height: 1.25;
}

.broker-card-services-title .broker-card-icon {
	width: 14px;
	height: 14px;
}

.broker-card-services-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.18rem 0.9rem;
	font-size: 1.5rem;
	color: #2a2a2a;
	line-height: 1.35;
}

/* Tablet */
@media (max-width: 992px) {
	.broker-card-top {
		grid-template-columns: 1fr;
		row-gap: 0.6rem;
	}
	.broker-card-bottom {
		grid-template-columns: 1fr;
		row-gap: 0.8rem;
	}
	.broker-search-form {
		max-width: 100%;
		padding: 2rem 2rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.broker-search-page {
		padding: 1rem 0 2rem;
	}

	.broker-search-wrap {
		padding: 0 1rem;
	}

	.broker-search-header {
		margin-bottom: 1.5rem;
	}

	.broker-search-title {
		font-size: 2rem;
		margin-bottom: 0.5rem;
	}

	.broker-search-intro {
		font-size: 1.2rem;
	}

	.broker-search-section {
		margin-bottom: 1.25rem;
	}

	.broker-search-form {
		padding: 1.25rem 1rem;
		margin-bottom: 1.25rem;
		border-radius: 12px;
	}

	.broker-search-label {
		font-size: 1.375rem;
		margin-bottom: 0.5rem;
	}

	.broker-search-row {
		flex-direction: column;
		gap: 0.5rem;
	}

	.broker-search-input {
		font-size: 1.125rem;
		padding: 14px 16px;
		min-height: 50px;
	}

	.broker-search-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
		font-size: 1.125rem;
	}

	.broker-search-filters {
		margin-bottom: 1.5rem;
	}

	.broker-filter-row {
		flex-direction: column;
		gap: 1rem;
	}

	.broker-filter-item {
		min-width: 0;
		max-width: 100%;
	}

	.broker-filter-label {
		font-size: 1.25rem;
	}

	.broker-filter-select {
		font-size: 1.125rem;
		min-height: 52px;
		padding: 12px 36px 12px 16px;
	}

	.broker-search-results-list .broker-card {
		flex-direction: column;
		align-items: center;
		padding: 1.25rem 1rem;
		gap: 1rem;
		border-radius: 12px;
		margin-bottom: 1.25rem;
	}

	.broker-card-left {
		width: 100%;
		text-align: center;
	}

	.broker-card-avatar-wrap {
		width: 100px;
		height: 100px;
		margin-bottom: 0.5rem;
	}

	.broker-card-rating-text {
		font-size: 1.35rem;
	}

	.broker-card-stars {
		font-size: 1.35rem;
	}

	.broker-card-content {
		width: 100%;
		text-align: center;
	}

	.broker-card-top {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding-bottom: 0.75rem;
		margin-bottom: 0.75rem;
	}

	.broker-card-headings {
		width: 100%;
	}

	.broker-card-name {
		font-size: 1.65rem;
		margin-bottom: 0.15rem;
	}

	.broker-card-company {
		font-size: 1.2rem;
	}

	.broker-card-phone {
		justify-content: center;
		font-size: 1.2rem;
	}

	.broker-card-phone a {
		font-size: 1.2rem;
	}

	.broker-card-phone-icon-wrap {
		width: 32px;
		height: 32px;
	}

	.broker-card-phone .broker-card-icon-phone {
		width: 14px;
		height: 14px;
	}

	.broker-card-btn {
		width: 100%;
		text-align: center;
		padding: 1rem 1.5rem;
		font-size: 1.125rem;
	}

	.broker-card-bottom {
		grid-template-columns: 1fr;
		row-gap: 1rem;
		text-align: left;
		padding-top: 0.75rem;
	}

	.broker-card-bio-wrap {
		order: 1;
	}

	.broker-card-bio {
		font-size: 1.2rem;
		line-height: 1.5;
	}

	.broker-card-details-wrap {
		order: 2;
	}

	.broker-card-attrs li {
		font-size: 1.2rem;
	}

	.broker-card-services-wrap {
		order: 3;
	}

	.broker-card-services-title {
		font-size: 1.25rem;
	}

	.broker-card-services-list {
		grid-template-columns: 1fr;
		font-size: 1.2rem;
	}

	.broker-card-rating-text {
		font-size: 1.35rem;
	}

	.broker-search-no-results,
	.broker-search-empty {
		padding: 1rem;
		font-size: 1.2rem;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.broker-search-wrap {
		padding: 0 0.75rem;
	}

	.broker-search-title {
		font-size: 1.75rem;
	}

	.broker-search-intro {
		font-size: 1.125rem;
	}

	.broker-search-label {
		font-size: 1.25rem;
	}

	.broker-search-input,
	.broker-search-btn {
		font-size: 1.1rem;
	}

	.broker-filter-label {
		font-size: 1.2rem;
	}

	.broker-filter-select {
		font-size: 1.1rem;
	}

	.broker-search-form {
		padding: 1rem 0.75rem;
	}

	.broker-search-results-list .broker-card {
		padding: 1rem 0.75rem;
	}

	.broker-card-name {
		font-size: 1.5rem;
	}

	.broker-card-company {
		font-size: 1.125rem;
	}

	.broker-card-phone,
	.broker-card-phone a {
		font-size: 1.125rem;
	}

	.broker-card-btn {
		font-size: 1.1rem;
	}

	.broker-card-bio,
	.broker-card-attrs li,
	.broker-card-services-list {
		font-size: 1.125rem;
	}

	.broker-card-services-title {
		font-size: 1.2rem;
	}

	.broker-card-rating-text {
		font-size: 1.25rem;
	}

	.broker-card-avatar-wrap {
		width: 88px;
		height: 88px;
	}
}

.broker-search-no-results,
.broker-search-empty {
	color: #646970;
	padding: 1.5rem;
	font-size: 1.0625rem;
}

.broker-search-empty {
	font-style: italic;
}

.broker-search-loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #ddd;
	border-top-color: #F42941;
	border-radius: 50%;
	animation: broker-search-spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
}

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