/*
	Find & Bind · owner_public_page.css
	Uses base.css for the shared header, footer, theme tokens and account menu.
	Page-specific selectors are scoped to avoid changing other pages.
*/
.owner-public-page{
	--opp-surface:#fff;
	--opp-soft:#f8fafc;
	--opp-heading:#0f1b3d;
	--opp-text:#334155;
	--opp-muted:#64748b;
	--opp-accent:#047857;
	--opp-accent-bg:#ecfdf5;
	--opp-accent-line:#a7f3d0;
	display:flex;
	flex-direction:column;
	min-height:100vh;
	min-height:100dvh;
}

.owner-public-page [hidden]{
	display:none !important;
}

.owner-public-page .site-footer{
	flex-shrink:0;
}

.owner-public-page .brand{
	text-decoration:none;
}

.owner-public-page .user-menu__panel{
	right:0;
	left:auto;
	max-width:calc(100vw - 24px);
	max-height:calc(100dvh - 88px);
	overflow-y:auto;
}

.owner-public-page .user-menu__header > div{
	min-width:0;
}

.owner-public-page .user-menu__header small{
	overflow-wrap:anywhere;
}

.owner-public-page .notifications-menu-badge{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:21px;
	min-height:21px;
	margin-left:auto;
	padding:1px 6px;
	border-radius:999px;
	background:var(--red, #e10600);
	color:#fff;
	font-size:12px;
	font-weight:700;
}

/* Match the subtle red/green background and rounded cards of My Posts. */
.opp-main{
	flex:1 0 auto;
	min-width:0;
	background:
		radial-gradient(70% 70% at 100% 0, rgba(0,161,20,.06), transparent 42%),
		radial-gradient(65% 65% at 0 15%, rgba(225,6,0,.05), transparent 42%),
		var(--gray, #f5f6f8);
	color:var(--opp-text);
	font-size:16px;
	line-height:1.6;
}

.opp-wrap{
	padding:22px 0 40px;
}

.opp-main a{
	text-decoration:none;
}

.opp-main :where(a, button, input, select, summary):focus-visible{
	outline:3px solid #2563eb;
	outline-offset:3px;
}

.opp-main :where(button, input, select){
	font:inherit;
}

.opp-breadcrumb{
	display:flex;
	align-items:center;
	gap:10px;
	min-width:0;
	margin-bottom:15px;
	font-size:14px;
}

.opp-breadcrumb a{
	color:var(--opp-muted);
	flex-shrink:0;
}

.opp-breadcrumb > span{
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	color:var(--opp-heading);
}

.opp-breadcrumb > i{
	font-size:12px;
	color:var(--opp-muted);
}

.opp-profile,
.opp-panel,
.opp-listing-card{
	background:var(--opp-surface);
	border:1px solid var(--line, #e4e7ec);
	border-radius:18px;
	box-shadow:var(--shadow, 0 4px 20px rgba(0,0,0,.08));
}

.opp-profile{
	overflow:hidden;
	margin-bottom:22px;
}

.opp-cover{
	position:relative;
	height:clamp(160px, 18vw, 260px);
	background:linear-gradient(120deg, #0f1b3d, #173655 55%, #155e45);
}

.opp-cover img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center;
}

.opp-identity{
	position:relative;
	display:grid;
	grid-template-columns:108px minmax(0, 1fr) auto;
	align-items:start;
	gap:20px;
	padding:22px 24px 24px;
}

/*
	The image fills the circular viewport without internal padding.
	This preserves the logo framing saved by the owner dashboard cropper.
*/
.opp-avatar{
	position:relative;
	display:grid;
	place-items:center;
	width:108px;
	height:108px;
	margin-top:-50px;
	overflow:hidden;
	border:5px solid var(--opp-surface);
	border-radius:50%;
	background:#e2e8f0;
	color:#0f1b3d;
	box-shadow:0 4px 14px rgba(15,23,42,.12);
	font-size:36px;
	font-weight:800;
}

.opp-avatar img,
.opp-review-avatar img{
	position:absolute;
	inset:0;
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	border-radius:50%;
}

.opp-identity-copy{
	min-width:0;
}

.opp-title-row{
	display:flex;
	align-items:center;
	gap:10px;
	flex-wrap:wrap;
}

.opp-title-row h1{
	margin:0;
	color:var(--opp-heading);
	font-size:clamp(25px, 3vw, 34px);
	line-height:1.2;
	overflow-wrap:anywhere;
}

.opp-verified,
.opp-primary-label,
.opp-availability,
.opp-type-badge{
	display:inline-flex;
	align-items:center;
	gap:5px;
	padding:3px 9px;
	border:1px solid var(--opp-accent-line);
	border-radius:999px;
	background:var(--opp-accent-bg);
	color:var(--opp-accent);
	font-size:13px;
	font-weight:700;
	line-height:1.6;
}

.opp-profile-type{
	display:flex;
	align-items:center;
	gap:7px;
	margin:8px 0;
	color:var(--opp-muted);
	font-size:14px;
}

.opp-profile-meta{
	display:flex;
	align-items:center;
	gap:9px 20px;
	flex-wrap:wrap;
	color:var(--opp-muted);
	font-size:14px;
}

.opp-profile-meta > span{
	display:inline-flex;
	align-items:center;
	gap:7px;
}

.opp-rating-link{
	display:inline-flex;
	align-items:center;
	flex-wrap:wrap;
	gap:7px;
	color:var(--opp-muted);
}

.opp-rating-link strong{
	color:var(--opp-heading);
}

.opp-rating-link:hover{
	text-decoration:underline;
}

.opp-stars{
	display:inline-flex;
	gap:3px;
	color:#b77900;
	white-space:nowrap;
	font-size:15px;
}

.opp-profile-actions{
	display:flex;
	align-items:stretch;
	justify-content:flex-end;
	flex-wrap:wrap;
	gap:8px;
	max-width:330px;
}

.opp-main .opp-button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:7px;
	min-height:44px;
	padding:10px 14px;
	border:1px solid transparent;
	border-radius:11px;
	font-size:14px;
	font-weight:700;
	line-height:1.4;
	text-align:center;
	white-space:normal;
	cursor:pointer;
	transition:background .16s ease, border-color .16s ease;
}

.opp-main .opp-button-primary{
	border-color:#008c3f;
	background:#008c3f;
	color:#fff;
}

.opp-main .opp-button-primary:hover{
	border-color:#006f32;
	background:#006f32;
}

.opp-main .opp-button-secondary{
	border-color:var(--line, #e4e7ec);
	background:var(--opp-surface);
	color:var(--opp-heading);
}

.opp-main .opp-button-secondary:hover{
	background:var(--opp-soft);
	border-color:var(--opp-muted);
}

.opp-main .opp-button-dark{
	background:#0f1b3d;
	border-color:#0f1b3d;
	color:#fff;
}

.opp-main .opp-button-dark:hover{
	background:#22355c;
}

.opp-main .opp-button-message{
	background:var(--opp-accent-bg);
	border-color:var(--opp-accent-line);
	color:var(--opp-accent);
}

.opp-main .opp-button-message:hover{
	border-color:var(--opp-accent);
}

/* Profile sidebar and content have independent minimum widths. */
.opp-layout{
	display:grid;
	grid-template-columns:260px minmax(0, 1fr);
	align-items:start;
	gap:22px;
}

.opp-sidebar,
.opp-content{
	min-width:0;
}

.opp-content{
	scroll-margin-top:95px;
}

.opp-sidebar{
	display:grid;
	gap:16px;
}

.opp-panel{
	padding:20px;
}

.opp-panel h2{
	display:flex;
	align-items:center;
	gap:9px;
	margin:0 0 12px;
	color:var(--opp-heading);
	font-size:18px;
	line-height:1.4;
}

.opp-panel h2 > i,
.opp-detail summary i{
	color:var(--opp-accent);
	font-size:16px;
}

.opp-description,
.opp-review-comment{
	margin:0;
	white-space:pre-line;
	overflow-wrap:anywhere;
}

.opp-since{
	margin:16px 0 0;
	padding-top:14px;
	border-top:1px solid var(--line, #e4e7ec);
	color:var(--opp-muted);
	font-size:14px;
}

.opp-since i{
	margin-right:5px;
}

.opp-since time{
	display:block;
}

.opp-detail{
	padding:0;
}

.opp-detail summary{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
	padding:18px 20px;
	color:var(--opp-heading);
	font-size:18px;
	font-weight:700;
	cursor:pointer;
	list-style:none;
}

.opp-detail summary::-webkit-details-marker{
	display:none;
}

.opp-detail summary > span:first-child{
	display:flex;
	align-items:center;
	gap:9px;
	min-width:0;
}

.opp-detail summary::after{
	content:"+";
	font-size:20px;
	color:var(--opp-muted);
}

.opp-detail[open] summary::after{
	content:"−";
}

.opp-detail summary .opp-count{
	margin-left:auto;
}

.opp-detail-body{
	padding:0 20px 18px;
}

.opp-categories{
	display:grid;
	gap:6px;
	max-height:310px;
	margin:0;
	padding:0 3px 0 0;
	overflow-y:auto;
	list-style:none;
}

.opp-categories a{
	display:block;
	padding:9px 10px;
	border:1px solid transparent;
	border-radius:10px;
	color:var(--opp-text);
	overflow-wrap:anywhere;
	font-size:14px;
}

.opp-categories a:hover,
.opp-categories a.is-selected{
	border-color:var(--opp-accent-line);
	background:var(--opp-accent-bg);
	color:var(--opp-accent);
}

.opp-categories small{
	display:block;
	margin-top:2px;
	color:var(--opp-muted);
	font-size:12px;
}

.opp-address{
	display:grid;
	gap:2px;
	padding:13px 0;
	border-top:1px solid var(--line, #e4e7ec);
	font-style:normal;
	font-size:14px;
	overflow-wrap:anywhere;
}

.opp-address:first-child{
	border-top:0;
	padding-top:0;
}

.opp-address:last-child{
	padding-bottom:0;
}

.opp-address-title{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:7px;
	margin-bottom:4px;
	color:var(--opp-heading);
}

.opp-primary-label{
	font-size:12px;
	padding:1px 7px;
}

/* Tab links remain functional server-side when JavaScript is disabled. */
.opp-tabs{
	display:flex;
	flex-wrap:wrap;
	gap:9px;
	margin-bottom:16px;
}

.opp-tab{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:9px;
	padding:11px 16px;
	border:1px solid var(--line, #e4e7ec);
	border-radius:12px;
	background:var(--opp-surface);
	color:var(--opp-heading);
	font-weight:700;
}

.opp-tab:hover{
	background:var(--opp-soft);
}

.opp-tab.is-active{
	background:#0f1b3d;
	border-color:#0f1b3d;
	color:#fff;
}

.opp-count{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:25px;
	padding:1px 7px;
	border-radius:999px;
	background:var(--opp-soft);
	color:var(--opp-muted);
	font-size:13px;
	font-weight:700;
}

.opp-tab.is-active .opp-count{
	background:rgba(255,255,255,.15);
	color:#fff;
}

.opp-toolbar{
	display:grid;
	gap:13px;
	padding:16px;
}

.opp-search-row{
	display:flex;
	align-items:stretch;
	gap:9px;
}

.opp-search{
	display:flex;
	align-items:center;
	flex:1;
	gap:9px;
	min-width:0;
	padding:0 12px;
	border:1px solid var(--line, #e4e7ec);
	border-radius:10px;
	background:var(--opp-soft);
	color:var(--opp-muted);
}

.opp-search input{
	width:100%;
	min-width:0;
	min-height:44px;
	padding:7px 0;
	border:0;
	background:transparent;
	color:var(--opp-text);
	font-size:16px;
}

.opp-search input::placeholder{
	color:var(--opp-muted);
	opacity:1;
}

.opp-filter-row{
	display:grid;
	grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
	gap:12px;
}

.opp-filter-row label{
	display:grid;
	gap:5px;
	min-width:0;
	color:var(--opp-muted);
	font-size:14px;
}

.opp-filter-row select{
	width:100%;
	min-width:0;
	min-height:44px;
	padding:8px 10px;
	border:1px solid var(--line, #e4e7ec);
	border-radius:10px;
	background:var(--opp-soft);
	color:var(--opp-text);
	font-size:16px;
}

.opp-result-line{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	flex-wrap:wrap;
	margin:14px 2px;
	font-size:14px;
}

.opp-result-line p{
	margin:0;
	color:var(--opp-muted);
}

.opp-result-line a{
	color:var(--opp-accent);
	font-weight:700;
}

.opp-listing-grid{
	display:grid;
	grid-template-columns:repeat(2, minmax(0, 1fr));
	gap:16px;
}

.opp-listing-card{
	display:flex;
	flex-direction:column;
	min-width:0;
	overflow:hidden;
	border-radius:16px;
}

.opp-listing-card:hover{
	border-color:var(--opp-accent-line);
}

.opp-listing-media{
	position:relative;
	display:block;
	height:180px;
	overflow:hidden;
	background:var(--opp-accent-bg);
}

.opp-listing-media img,
.opp-listing-placeholder{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
}

.opp-listing-media img{
	display:block;
	object-fit:cover;
}

.opp-listing-placeholder{
	display:grid;
	place-items:center;
	background:linear-gradient(135deg, var(--opp-accent-bg), var(--opp-soft));
	color:var(--opp-accent);
	font-size:38px;
}

.opp-type-badge{
	position:absolute;
	top:11px;
	left:11px;
	box-shadow:0 4px 12px rgba(17,24,39,.1);
}

.opp-listing-body{
	display:flex;
	flex:1;
	flex-direction:column;
	min-width:0;
	padding:15px;
}

.opp-listing-labels{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:7px;
	margin-bottom:10px;
}

.opp-availability{
	font-size:12px;
}

.opp-listing-category{
	flex:1;
	min-width:60px;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	color:var(--opp-muted);
	font-size:13px;
}

.opp-listing-body h3{
	margin:0 0 9px;
	color:var(--opp-heading);
	font-size:18px;
	line-height:1.4;
	overflow-wrap:anywhere;
}

.opp-listing-body h3 a{
	color:inherit;
}

.opp-listing-body h3 a:hover{
	color:var(--opp-accent);
}

.opp-listing-excerpt{
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	overflow-wrap:anywhere;
	margin:0 0 14px;
	color:var(--opp-muted);
	font-size:14px;
}

.opp-price{
	margin:auto 0 5px;
	padding-top:8px;
	color:var(--opp-heading);
	font-size:18px;
	font-weight:700;
	overflow-wrap:anywhere;
}

.opp-negotiable{
	margin-bottom:6px;
	color:var(--opp-accent);
	font-size:13px;
}

.opp-listing-location,
.opp-listing-date{
	display:flex;
	align-items:baseline;
	gap:7px;
	margin:4px 0 0;
	color:var(--opp-muted);
	font-size:13px;
}

.opp-listing-location span{
	min-width:0;
	overflow-wrap:anywhere;
}

.opp-listing-location i,
.opp-listing-date i{
	flex-shrink:0;
	width:14px;
	text-align:center;
}

.opp-listing-actions{
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	padding:12px;
	border-top:1px solid var(--line, #e4e7ec);
	background:var(--opp-soft);
}

.opp-listing-actions .opp-button{
	flex:1 1 130px;
	padding:9px;
}

/* Reviews use the same cards and public identity treatment as the listing pages. */
.opp-review-summary{
	display:flex;
	align-items:center;
	gap:20px;
	margin-bottom:16px;
}

.opp-review-summary > strong{
	color:var(--opp-heading);
	font-size:36px;
	line-height:1.2;
}

.opp-review-summary small{
	color:var(--opp-muted);
	font-size:16px;
	font-weight:400;
}

.opp-review-summary p{
	margin:4px 0 0;
	color:var(--opp-muted);
	font-size:14px;
}

.opp-reviews{
	display:grid;
	gap:14px;
}

.opp-review-head{
	display:flex;
	align-items:center;
	gap:11px;
}

.opp-review-avatar{
	position:relative;
	display:grid;
	place-items:center;
	flex-shrink:0;
	width:44px;
	height:44px;
	overflow:hidden;
	border-radius:50%;
	background:var(--opp-soft);
	color:var(--opp-heading);
	font-weight:800;
}

.opp-review-author{
	flex:1;
	min-width:0;
}

.opp-review-author h3{
	margin:0;
	color:var(--opp-heading);
	font-size:16px;
	overflow-wrap:anywhere;
}

.opp-review-author time{
	color:var(--opp-muted);
	font-size:13px;
}

.opp-review-comment{
	margin-top:14px;
}

.opp-pagination{
	display:flex;
	align-items:center;
	justify-content:center;
	flex-wrap:wrap;
	gap:7px;
	margin-top:22px;
	font-size:14px;
}

.opp-page-link{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:40px;
	min-height:44px;
	padding:7px 12px;
	border:1px solid var(--line, #e4e7ec);
	border-radius:10px;
	background:var(--opp-surface);
	color:var(--opp-heading);
}

.opp-page-link:hover{
	border-color:var(--opp-accent);
}

.opp-page-link.is-current{
	background:#0f1b3d;
	border-color:#0f1b3d;
	color:#fff;
}

.opp-page-gap{
	color:var(--opp-muted);
}

.opp-empty{
	display:flex;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	gap:12px;
	min-height:270px;
	padding:32px 20px;
	border:1px dashed var(--line, #e4e7ec);
	border-radius:18px;
	background:var(--opp-surface);
	text-align:center;
}

.opp-empty-icon{
	display:grid;
	place-items:center;
	width:64px;
	height:64px;
	border-radius:18px;
	background:var(--opp-soft);
	color:var(--opp-accent);
	font-size:26px;
}

.opp-empty h1,
.opp-empty h2{
	margin:0;
	color:var(--opp-heading);
	font-size:23px;
	line-height:1.35;
}

.opp-empty p{
	max-width:540px;
	margin:0;
	color:var(--opp-muted);
}

.opp-not-found{
	min-height:420px;
	margin:24px 0;
}

.opp-feedback,
.opp-contact-note{
	margin:0 0 16px;
	padding:13px 16px;
	border:1px solid var(--opp-accent-line);
	border-radius:12px;
	background:var(--opp-accent-bg);
	color:var(--opp-accent);
	font-size:14px;
}

.opp-share-fallback{
	margin-bottom:18px;
}

.opp-share-fallback label{
	display:block;
	margin-bottom:8px;
}

.opp-share-fallback input{
	width:100%;
	min-height:44px;
	padding:10px;
	border:1px solid var(--line, #e4e7ec);
	border-radius:9px;
	background:var(--opp-soft);
	color:var(--opp-text);
	font-size:16px;
}

/* Extend the existing dark theme, including controls and image fallbacks. */
[data-theme="dark"] .owner-public-page{
	--opp-surface:#0e1420;
	--opp-soft:#0b1220;
	--opp-heading:#e5e7eb;
	--opp-text:#cbd5e1;
	--opp-muted:#a3afc2;
	--opp-accent:#6ee7b7;
	--opp-accent-bg:#0f231b;
	--opp-accent-line:#20523c;
}

[data-theme="dark"] .opp-main{
	background:
		radial-gradient(70% 70% at 100% 0, rgba(0,161,20,.06), transparent 42%),
		radial-gradient(65% 65% at 0 15%, rgba(225,6,0,.05), transparent 42%),
		#0c111b;
}

[data-theme="dark"] .opp-tab.is-active,
[data-theme="dark"] .opp-page-link.is-current,
[data-theme="dark"] .opp-main .opp-button-dark{
	background:#c7d2fe;
	border-color:#c7d2fe;
	color:#0f172a;
}

[data-theme="dark"] .opp-tab.is-active .opp-count{
	background:rgba(15,23,42,.14);
	color:#0f172a;
}

[data-theme="dark"] .opp-stars{
	color:#fbbf24;
}

[data-theme="dark"] .opp-avatar{
	background:#1e293b;
	color:#e5e7eb;
}

/* Responsive sizes preserve readable text and allow buttons and titles to wrap. */
@media (min-width:1600px){
	.opp-listing-grid{
		grid-template-columns:repeat(3, minmax(0, 1fr));
	}
}

@media (max-width:1200px){
	.opp-layout{
		grid-template-columns:235px minmax(0, 1fr);
		gap:18px;
	}

	.opp-identity{
		grid-template-columns:96px minmax(0, 1fr);
		gap:16px;
	}

	.opp-avatar{
		width:96px;
		height:96px;
	}

	.opp-profile-actions{
		grid-column:2;
		justify-content:flex-start;
		max-width:none;
	}
}

@media (max-width:1000px){
	.opp-layout{
		grid-template-columns:1fr;
	}

	.opp-sidebar{
		grid-template-columns:repeat(3, minmax(0, 1fr));
		align-items:start;
		gap:12px;
	}

	.opp-panel{
		padding:16px;
	}

	.opp-detail{
		padding:0;
	}

	.opp-detail summary{
		padding:16px;
		font-size:16px;
	}

	.opp-detail-body{
		padding:0 16px 16px;
	}
}

@media (max-width:800px){

	.opp-sidebar{
		grid-template-columns:repeat(2, minmax(0, 1fr));
	}

	.opp-about{
		grid-column:1 / -1;
	}
}

@media (max-width:620px){
	.opp-wrap{
		padding-top:15px;
	}

	.opp-cover{
		height:155px;
	}

	.opp-identity{
		grid-template-columns:78px minmax(0, 1fr);
		gap:12px;
		padding:18px 16px;
	}

	.opp-avatar{
		width:78px;
		height:78px;
		margin-top:-39px;
		border-width:4px;
		font-size:27px;
	}

	.opp-title-row h1{
		font-size:25px;
	}

	.opp-profile-actions{
		grid-column:1 / -1;
	}

	.opp-profile-actions .opp-button{
		flex:1 1 140px;
	}

	.opp-profile-meta{
		gap:8px;
	}

	.opp-sidebar,
	.opp-listing-grid{
		grid-template-columns:1fr;
	}

	.opp-profile{
		margin-bottom:16px;
	}

	.opp-tab{
		flex:1;
		padding:11px 10px;
	}

	.opp-filter-row{
		grid-template-columns:1fr;
	}

	.opp-listing-media{
		height:205px;
	}

	.opp-review-head{
		flex-wrap:wrap;
	}

	.opp-review-rating{
		flex-basis:100%;
		margin-left:55px;
	}

}

@media (max-width:360px){

	.opp-search-row{
		flex-direction:column;
	}

	.opp-identity{
		grid-template-columns:1fr;
	}

	.opp-profile-actions{
		grid-column:1;
	}

	.opp-avatar{
		margin-bottom:3px;
	}

	.opp-review-summary{
		align-items:flex-start;
		flex-direction:column;
		gap:10px;
	}
}

@media (prefers-reduced-motion:reduce){
	.opp-main *,
	.opp-main *::before,
	.opp-main *::after{
		transition:none !important;
		scroll-behavior:auto !important;
	}
}

/* Suppress the focus outline on the fragment target container only. */
#ownerContent:focus,
#ownerContent:focus-visible{
	outline:none;
}

/* Keep category names and listing counts aligned. */
.opp-categories a{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}

.opp-category-name{
	min-width:0;
	overflow-wrap:anywhere;
}

.opp-categories .opp-count{
	flex-shrink:0;
}

/* The category selector now lives in the sidebar. */
.opp-filter-row.opp-filter-row--sort-only{
	grid-template-columns:minmax(0, 1fr);
}