/**
 * SL Sri Lanka AI Directory — Business Profile page
 * A Google Business Profile-style single listing layout.
 * All selectors are scoped under .sl-profile / .sl-profile-main to avoid
 * colliding with the active theme's own styles.
 */

.sl-profile-main {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px 48px;
	box-sizing: border-box;
}

.sl-profile-main * {
	box-sizing: border-box;
}

/* Language switcher (EN / සිංහල / தமிழ்) --------------------------------
   Only rendered when the owner has actually filled in a translation. */
.sl-profile__lang-switcher {
	display: flex;
	gap: 6px;
	padding: 8px 0 0;
	flex-wrap: wrap;
}

.sl-profile__lang-link {
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid #dadce0;
	color: #3c4043;
	text-decoration: none;
	background: #fff;
}

.sl-profile__lang-link:hover {
	background: #f1f3f4;
}

.sl-profile__lang-link.is-active {
	background: #1a73e8;
	border-color: #1a73e8;
	color: #fff;
}

/* Breadcrumb ---------------------------------------------------------- */
.sl-profile__breadcrumb {
	font-size: 13px;
	color: #5f6368;
	padding: 16px 0 8px;
	overflow-x: auto;
	white-space: nowrap;
}

.sl-profile__breadcrumb a {
	color: #202124;
	text-decoration: none;
}

.sl-profile__breadcrumb a:hover {
	text-decoration: underline;
}

.sl-profile__breadcrumb-sep {
	margin: 0 6px;
	color: #bbb;
}

/* Cover ----------------------------------------------------------------*/
.sl-profile__cover {
	position: relative;
	width: 100%;
	height: 280px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-color: #e8eaed;
	overflow: hidden;
}


.sl-profile__cover-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
	opacity: 0.15;
}

@media (max-width: 640px) {
	.sl-profile__cover {
		height: 160px;
		border-radius: 8px;
	}
}

/* Profile card (logo + name + meta) ------------------------------------*/
.sl-profile__card {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	margin-top: -48px;
	padding: 0 16px;
	position: relative;
	z-index: 1;
	flex-wrap: wrap;
}

.sl-profile__logo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: #fff;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
}

.sl-profile__logo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 700;
	color: #fff;
	background: #1a73e8;
	text-transform: uppercase;
}

.sl-profile__heading {
	flex: 1;
	min-width: 200px;
	padding-bottom: 4px;
}

.sl-profile__name {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #202124;
	line-height: 1.25;
}

.sl-profile__verified {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 13px;
	border-radius: 50%;
	background: #1a73e8;
	color: #fff;
	vertical-align: middle;
	margin-left: 6px;
}

.sl-profile__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #5f6368;
}

.sl-profile__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #202124;
}

.sl-profile__stars {
	color: #fbbc04;
	letter-spacing: 1px;
}

.sl-profile__rating-count {
	color: #5f6368;
}

.sl-profile__category,
.sl-profile__price,
.sl-profile__location {
	padding: 2px 10px;
	border-radius: 100px;
	background: #f1f3f4;
	color: #444;
	font-size: 13px;
}

.sl-profile__open-badge {
	padding: 2px 10px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
}

.sl-profile__open-badge.is-open {
	background: #e6f4ea;
	color: #137333;
}

.sl-profile__open-badge.is-closed {
	background: #fce8e6;
	color: #c5221f;
}

/* Action buttons ---------------------------------------------------------*/
.sl-profile__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 8px;
	padding: 0 16px;
}

.sl-profile__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 100px;
	background: #202124;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.15s ease, transform 0.1s ease;
	border: 1px solid #202124;
}

.sl-profile__btn:hover {
	background: #3c4043;
	color: #fff;
	transform: translateY(-1px);
}

.sl-profile__btn--whatsapp,
.sl-profile__btn--directions,
.sl-profile__btn--website,
.sl-profile__btn--email {
	background: #fff;
	color: #202124;
	border-color: #dadce0;
}

.sl-profile__btn--whatsapp:hover,
.sl-profile__btn--directions:hover,
.sl-profile__btn--website:hover,
.sl-profile__btn--email:hover {
	background: #f1f3f4;
	color: #202124;
}

.sl-profile__btn-icon {
	font-size: 15px;
	line-height: 1;
}

/* Body layout ------------------------------------------------------------*/
.sl-profile__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 28px;
	margin-top: 24px;
	padding: 0 16px;
}

@media (max-width: 860px) {
	.sl-profile__body {
		grid-template-columns: 1fr;
	}
}

.sl-profile__main {
	min-width: 0;
}

/* Highlights chips ---------------------------------------------------------*/
.sl-profile__chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
}

.sl-profile__chip {
	background: #e8f0fe;
	color: #1967d2;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 100px;
}

/* Content area (the_content + AI summary + FAQ + extra fields) -----------*/
.sl-profile__content {
	font-size: 15px;
	line-height: 1.7;
	color: #3c4043;
}

.sl-profile__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Sidebar cards ------------------------------------------------------------*/
.sl-profile__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sl-profile__card-block {
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 12px;
	padding: 18px;
}

.sl-profile__card-block h2 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #202124;
}

.sl-profile__info-list,
.sl-profile__hours-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sl-profile__info-row {
	display: grid;
	grid-template-columns: 22px 1fr;
	grid-template-areas: "icon value";
	gap: 4px 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f3f4;
	font-size: 14px;
}

.sl-profile__info-row:last-child {
	border-bottom: none;
}

.sl-profile__info-icon {
	grid-area: icon;
	font-size: 15px;
	line-height: 1.5;
}

.sl-profile__info-label {
	display: block;
	font-size: 12px;
	color: #5f6368;
	grid-area: value;
}

.sl-profile__info-value {
	grid-area: value;
	margin-top: 14px;
	color: #202124;
	word-break: break-word;
}

.sl-profile__info-value a {
	color: #1a73e8;
	text-decoration: none;
}

.sl-profile__info-value a:hover {
	text-decoration: underline;
}

.sl-profile__verification-note {
	font-size: 12px;
	color: #5f6368;
	margin: 6px 0;
	line-height: 1.4;
}

.sl-profile__verification-checklist {
	list-style: none;
	margin: 6px 0;
	padding: 0;
	font-size: 12.5px;
	color: #202124;
}

.sl-profile__verification-checklist li {
	padding: 2px 0;
}

.sl-profile__verification-checklist-method {
	color: #767676;
	font-size: 11.5px;
}

.sl-profile__verification-history {
	margin: 8px 0;
	font-size: 12px;
}

.sl-profile__verification-history summary {
	cursor: pointer;
	color: #1a73e8;
	font-weight: 600;
}

.sl-profile__verification-history-list {
	margin: 8px 0 0 18px;
	padding: 0;
	color: #5f6368;
	line-height: 1.6;
}

.sl-profile__verification-history-list li {
	padding: 2px 0;
}

.sl-profile__report-link {
	background: none;
	border: none;
	padding: 0;
	margin-top: 10px;
	font-size: 12px;
	color: #767676;
	text-decoration: underline;
	cursor: pointer;
}

.sl-profile__report-link:hover {
	color: #1a73e8;
}

.sl-profile__report-form {
	margin-top: 8px;
}

.sl-profile__report-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 12.5px;
	padding: 6px 8px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.sl-profile__report-message {
	font-size: 12px;
	color: #a00;
	margin: 4px 0 0;
}

.sl-profile__hours-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
	color: #3c4043;
	border-bottom: 1px solid #f1f3f4;
}

.sl-profile__hours-row:last-child {
	border-bottom: none;
}

.sl-profile__hours-row.is-today {
	font-weight: 700;
	color: #1a73e8;
}

.sl-profile__map {
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.sl-profile__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.sl-profile__social-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sl-profile__social-link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #202124;
	text-decoration: none;
	padding: 6px 0;
}

.sl-profile__social-link:hover {
	color: #1a73e8;
}

/* Extra fields block (appended via the_content filter — see class-geo-schema.php) */
.sl-extra-fields {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e8eaed;
}

.sl-extra-fields h3 {
	font-size: 16px;
	margin: 0 0 12px;
}

.sl-extra-fields__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px 20px;
	margin: 0;
}

.sl-extra-fields__item {
	font-size: 14px;
}

.sl-extra-fields__item dt {
	font-size: 12px;
	color: #5f6368;
	margin: 0;
}

.sl-extra-fields__item dd {
	margin: 2px 0 0;
	color: #202124;
	font-weight: 600;
}

/* Priced Options / Price List — spans the full row width (a price list
   reads badly squeezed into one grid cell) rather than sitting in the
   regular auto-fill grid alongside plain single-value fields. */
.sl-extra-fields__item--priced {
	grid-column: 1 / -1;
}

.sl-extra-fields__priced-list {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sl-extra-fields__priced-list li {
	font-weight: 600;
	color: #202124;
}

.sl-extra-fields__note {
	font-weight: 400;
	color: #5f6368;
}

/* Reviews --------------------------------------------------------------
   Server-rendered (see Business_Profile_Template::render_reviews_card())
   so crawlers/AI engines reading this page directly see real review
   text without needing JS. Buttons/inputs/labels reuse the site-wide
   .sl-wizard__* classes (listing-wizard.css loads on every front-end
   page already) — only what's specific to reviews is styled here. */
.sl-profile__reviews-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.sl-profile__reviews-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #5f6368;
}

.sl-profile__reviews-empty {
	color: #5f6368;
	font-style: italic;
}

.sl-profile__review-item {
	border-top: 1px solid #eee;
	padding: 14px 0;
}

.sl-profile__review-item:first-child {
	border-top: none;
	padding-top: 0;
}

.sl-profile__review-item-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.sl-profile__review-date {
	color: #5f6368;
	font-size: 12px;
	margin-left: auto;
}

.sl-profile__review-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.sl-profile__review-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #e6f4ea;
	color: #1e7e34;
	border: 1px solid #b7dfc2;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
}

.sl-profile__review-badge::before {
	content: "\2713";
}

.sl-profile__review-form-wrap {
	margin-top: 16px;
}

.sl-profile__review-form {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
}

.sl-profile__review-stars {
	display: flex;
	gap: 4px;
	margin-bottom: 4px;
}

.sl-profile__review-star {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #dadce0;
	padding: 2px;
}

.sl-profile__review-star.is-selected {
	color: #fbbc04;
}

/* Honeypot — hidden from real visitors, still reachable by a bot that
   fills every field it finds (see Review_Engine::handle_submit_review()). */
.sl-profile__review-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
