/* Profile header action bar, contact strip, social strip, services chips, store CTA. */

/* ---- Header card geometry ---- */
.autolevo-profile-header-card { position: relative; }
.autolevo-profile-header-card .al-ph-header-identity { padding-right: 96px; }

/* ---- Top-right utility icons (Save / Share) ---- */
.al-ph-utility { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 8px; }
.al-ph-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border-radius: 50%; box-sizing: border-box;
	border: 1px solid var(--al-border, rgba(127, 127, 127, 0.35));
	background: var(--al-surface, rgba(127, 127, 127, 0.1)); color: inherit; cursor: pointer;
	font-size: 15px; line-height: 1; text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.al-ph-icon-btn:hover,
.al-ph-icon-btn:focus-visible,
.al-ph-icon-btn[aria-pressed="true"],
.al-ph-icon-btn.autolevo-save-btn[aria-pressed="true"],
.al-ph-icon-btn.autolevo-save-btn[aria-pressed="true"]:hover,
.al-ph-icon-btn.autolevo-save-btn[aria-pressed="true"]:focus-visible {
	background: #276ef1;
	border-color: #276ef1;
	color: #fff;
}
.al-ph-icon-btn[aria-pressed="true"] i,
.al-ph-icon-btn[aria-pressed="true"] svg,
.al-ph-icon-btn.autolevo-save-btn[aria-pressed="true"] i,
.al-ph-icon-btn.autolevo-save-btn[aria-pressed="true"] svg,
.al-ph-icon-btn:hover i,
.al-ph-icon-btn:hover svg,
.al-ph-icon-btn:focus-visible i,
.al-ph-icon-btn:focus-visible svg {
	color: #fff;
}
.al-ph-icon-btn:focus-visible { outline: 2px solid #276ef1; outline-offset: 2px; }
.al-ph-icon-btn .autolevo-save-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.al-ph-icon-btn i,
.al-ph-icon-btn svg { margin: 0; color: inherit; }
@media (hover: hover) and (min-width: 768px) {
	.al-ph-icon-btn[data-al-tip]::after, .al-ph-icon-btn.autolevo-save-btn::after {
		content: attr(data-al-tip); position: absolute; top: calc(100% + 6px); right: 0; white-space: nowrap;
		padding: 4px 8px; border-radius: 6px; font-size: 12px; background: var(--al-dk-canvas, #090B0E); color: #fff;
		opacity: 0; pointer-events: none; transition: opacity 0.12s ease;
	}
	.al-ph-icon-btn.autolevo-save-btn::after { content: attr(title); }
	.al-ph-icon-btn:hover::after { opacity: 1; }
}

/* ---- Owner / Primary CTA row ---- */
.al-ph-owner-row { margin: 12px 0 0; }
.al-ph-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.al-ph-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
	min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 14.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease, filter 0.14s ease;
}
.al-ph-cta--primary { background: #276ef1; border: 1px solid #276ef1; color: #fff; }
.al-ph-cta--primary:hover, .al-ph-cta--primary:focus-visible { filter: brightness(1.08); color: #fff; }
.al-ph-cta--outline { background: transparent; border: 1.5px solid #276ef1; color: #276ef1; }
.al-ph-cta--outline:hover, .al-ph-cta--outline:focus-visible { background: rgba(39, 110, 241, 0.1); color: #276ef1; }
.al-ph-cta--owner {
	background: var(--al-surface, rgba(127, 127, 127, 0.1));
	border: 1px solid var(--al-border, rgba(127, 127, 127, 0.32));
	color: inherit;
}
.al-ph-cta--owner:hover, .al-ph-cta--owner:focus-visible {
	border-color: #276ef1;
	background: rgba(39, 110, 241, 0.1);
	color: #276ef1;
	text-decoration: none;
}
.al-ph-cta .autolevo-store-count-badge {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
	border-radius: 999px; background: #276ef1; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ---- Quick contact strip ---- */
.al-ph-contact-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--al-border, rgba(127, 127, 127, 0.25)); }
.al-ph-tile {
	display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 40px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--al-border, rgba(127, 127, 127, 0.35));
	background: var(--al-surface, rgba(127, 127, 127, 0.08)); color: inherit; font: inherit; font-size: 14px; font-weight: 500;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.al-ph-tile:hover, .al-ph-tile:focus-visible { border-color: #276ef1; color: #276ef1; text-decoration: none; }
.al-ph-tile i { font-size: 15px; }
.al-ph-tile.is-loading { opacity: 0.6; pointer-events: none; }
.al-ph-tile.is-revealed { padding-right: 8px; }
.al-ph-revealed { display: inline-flex; align-items: center; gap: 8px; }
.al-ph-revealed__num { color: inherit; font-weight: 600; text-decoration: none; }
.al-ph-revealed__copy { border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: #276ef1; color: #fff; cursor: pointer; }

/* ---- Social strip ---- */
.al-ph-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.al-ph-social li { margin: 0; }
.al-ph-social-link {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box;
	border: 1px solid var(--al-border, rgba(127, 127, 127, 0.35)); color: inherit; opacity: 0.75; text-decoration: none; font-size: 14px;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.al-ph-social-link:hover, .al-ph-social-link:focus-visible { opacity: 1; background: #276ef1; border-color: #276ef1; color: #fff; }

.al-ph-note { margin-top: 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px; background: rgba(39, 110, 241, 0.12); }
.al-ph-note.is-error { background: rgba(239, 68, 68, 0.14); }

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.autolevo-profile-header-card .al-ph-header-identity {
		flex-wrap: wrap;
		align-items: flex-start;
		padding-right: 0;
		row-gap: 12px;
	}
	.autolevo-profile-header-card .al-ph-header-identity .autolevo-profile-header-avatar {
		width: 52px;
		height: 52px;
		font-size: 1.15rem;
	}
	.autolevo-profile-header-card .al-ph-header-identity .autolevo-title-badge-row {
		flex: 1 0 100%;
		width: 100%;
		min-width: 0;
	}
	.al-ph-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.al-ph-cta-row.is-single { grid-template-columns: 1fr; }
	.al-ph-cta-row.has-owner-cta .al-ph-cta--primary { grid-column: 1 / -1; }
	.al-ph-cta-row.has-owner-cta .al-ph-cta--owner:only-child,
	.al-ph-cta-row.has-owner-cta .al-ph-cta--primary + .al-ph-cta--owner:last-child { grid-column: 1 / -1; }
	.al-ph-cta { width: 100%; padding: 0 12px; min-width: 0; font-size: 14px; }
	/* One uniform row of compact tiles: icon stacked over a one-word label. Zero ragged wrapping. */
	.al-ph-contact-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
	.al-ph-tile {
		flex-direction: column; justify-content: center; gap: 4px; min-height: 58px; padding: 8px 4px; border-radius: 12px;
		font-size: 12px; text-align: center; min-width: 0;
	}
	.al-ph-tile i { font-size: 18px; }
	.al-ph-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
	.al-ph-tile.is-revealed { padding: 8px 4px; }
	.al-ph-revealed { flex-direction: column; gap: 4px; }
}

/* ---- Services chips ---- */
.autolevo-services-grid.al-chip-list { display: flex; flex-wrap: wrap; gap: 8px; grid-template-columns: none; }
.al-chip {
	display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; padding: 6px 12px; margin: 0; max-width: 100%;
	border-radius: 8px; border: 1px solid var(--al-border, rgba(127, 127, 127, 0.3));
	background: var(--al-surface, rgba(127, 127, 127, 0.08)); color: inherit; font: inherit; font-size: 13.5px; line-height: 1.3;
	white-space: nowrap; min-height: 0; height: auto; box-shadow: none;
}
.al-chip i { color: #22c55e; font-size: 13px; }
.al-chip--toggle { display: none; cursor: pointer; font-weight: 600; color: #276ef1; border-color: #276ef1; background: transparent; }
.autolevo-view-full-store-btn { box-sizing: border-box; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.autolevo-view-full-store-btn .al-label-short { display: none; }
@media (max-width: 599px) {
	.al-chip { white-space: normal; }
	.al-chip-list:not(.is-expanded) .al-chip--extra { display: none; }
	.al-chip--toggle { display: inline-flex; }
	.autolevo-view-full-store-btn .al-label-full { display: none; }
	.autolevo-view-full-store-btn .al-label-short { display: inline; }
}

/* ---- Inquiry form status ---- */
.al-inquiry-status { margin: 10px 0 0; font-size: 13.5px; padding: 8px 12px; border-radius: 8px; background: rgba(34, 197, 94, 0.14); }
.al-inquiry-status.is-error { background: rgba(239, 68, 68, 0.14); }
.al-inquiry-status[hidden] { display: none; }
.al-sec-notice { margin: 8px 0 0; font-size: 11.5px; opacity: 0.7; }
