:root {
	--as-color-bg: #f7f8f2;
	--as-color-surface: #ffffff;
	--as-color-text: #182028;
	--as-color-accent: #1f5eff;
	--as-color-border: #d6dbe3;
	--as-space: 1rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Georgia, serif;
	color: var(--as-color-text);
	background:
		radial-gradient(circle at top left, rgba(31, 94, 255, 0.08), transparent 30%),
		linear-gradient(180deg, #fbfbf8, var(--as-color-bg));
}

a {
	color: var(--as-color-accent);
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
}

.site-header,
.site-footer {
	background: var(--as-color-surface);
	border-bottom: 1px solid var(--as-color-border);
}

.site-footer {
	border-top: 1px solid var(--as-color-border);
	border-bottom: 0;
	margin-top: 3rem;
	padding: 1.5rem 0;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	gap: 1rem;
}

.site-header__actions,
.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.site-branding {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.site-nav a {
	text-decoration: none;
}

.site-header__actions a,
.site-footer__nav a {
	text-decoration: none;
}

.site-main {
	padding: 2rem 0 3rem;
}

.page-hero,
.archive-header,
.not-found {
	margin-bottom: 2rem;
}

.anuncie-public-flow {
	padding: 1.5rem 0 3rem;
}

.anuncie-public-flow__container {
	width: min(100%, 72rem);
}

.site-footer__inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-footer__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.anuncie-breadcrumbs {
	margin-bottom: 1rem;
}

.anuncie-breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	color: #5d6771;
	font-size: 0.95rem;
}

.anuncie-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
}

.page-hero {
	padding: 2rem;
	border: 1px solid var(--as-color-border);
	border-radius: 1rem;
	background: linear-gradient(135deg, rgba(31, 94, 255, 0.08), rgba(255, 255, 255, 0.95));
}

.anuncie-search-form,
.anuncie-directory-filter {
	margin: 1.5rem 0 2rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.anuncie-search-form input,
.anuncie-search-form button,
.anuncie-form input,
.anuncie-form textarea,
.anuncie-form select,
.anuncie-directory-filter input,
.anuncie-directory-filter select,
.anuncie-directory-filter button {
	padding: 0.8rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--as-color-border);
	font: inherit;
}

.anuncie-search-form input {
	flex: 1 1 320px;
	background: #fff;
}

.anuncie-search-form button,
.anuncie-button {
	background: var(--as-color-accent);
	color: #fff;
	border: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1rem;
	border-radius: 0.75rem;
}

.anuncie-button--secondary {
	background: #fff;
	color: var(--as-color-text);
	border: 1px solid var(--as-color-border);
}

.anuncie-button--small {
	padding: 0.65rem 0.9rem;
	font-size: 0.95rem;
}

.anuncie-directory-filter__search,
.anuncie-directory-filter__location,
.anuncie-directory-filter__actions {
	flex: 1 1 220px;
}

.anuncie-directory-filter__search input,
.anuncie-directory-filter__location select {
	width: 100%;
	margin-top: 0.35rem;
	background: #fff;
}

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

.anuncie-company-card {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 1rem;
	padding: 1rem;
	background: var(--as-color-surface);
	border: 1px solid var(--as-color-border);
	border-radius: 0.75rem;
}

.anuncie-company-card__media {
	display: block;
}

.anuncie-company-card__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--as-color-border);
	border-radius: 0.75rem;
	padding: 0.75rem;
}

.anuncie-company-card__content {
	display: flex;
	flex-direction: column;
}

.anuncie-company-card__title {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
}

.anuncie-company-card__meta,
.anuncie-company-card__summary {
	margin: 0.5rem 0 0;
}

.anuncie-company-card__actions {
	margin-top: 1rem;
}

.anuncie-company-single__layout {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: 2rem;
	align-items: start;
}

.anuncie-company-single__media img {
	width: 100%;
	border: 1px solid var(--as-color-border);
	border-radius: 1rem;
	background: #fff;
	padding: 1rem;
}

.anuncie-company-single__details {
	margin-top: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--as-color-border);
	border-radius: 0.75rem;
	background: #fff;
}

.anuncie-directory-filter fieldset {
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--as-color-border);
	border-radius: 0.75rem;
	background: #fff;
}

.anuncie-form,
.anuncie-dashboard-card {
	padding: 1.25rem;
	border: 1px solid var(--as-color-border);
	border-radius: 1rem;
	background: #fff;
}

.anuncie-account,
.anuncie-company-form-wrap,
.anuncie-dashboard {
	display: grid;
	gap: 1rem;
}

.anuncie-account--login,
.anuncie-account--register {
	max-width: 34rem;
	margin: 0 auto;
}

.anuncie-account--public .archive-header,
.anuncie-company-form-wrap--public .archive-header,
.anuncie-dashboard .archive-header {
	max-width: 52rem;
}

.anuncie-account--public .archive-header {
	margin-inline: auto;
	text-align: center;
}

.anuncie-account--public .archive-header h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
}

.anuncie-account--public .archive-header p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: #51606d;
}

.anuncie-account--public .anuncie-form,
.anuncie-company-form-wrap--public .anuncie-form {
	box-shadow: 0 18px 40px rgba(24, 32, 40, 0.06);
}

.anuncie-form__field,
.anuncie-form__row,
.anuncie-dashboard__actions {
	margin-bottom: 1rem;
}

.anuncie-form__field label,
.anuncie-directory-filter label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.anuncie-form input,
.anuncie-form textarea,
.anuncie-form select {
	width: 100%;
	background: #fff;
}

.anuncie-form input::placeholder,
.anuncie-form textarea::placeholder {
	color: #7a8692;
}

.anuncie-form input:focus-visible,
.anuncie-form textarea:focus-visible,
.anuncie-form select:focus-visible,
.anuncie-button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--as-color-accent);
	outline-offset: 2px;
}

.anuncie-form input:disabled,
.anuncie-form textarea:disabled,
.anuncie-form select:disabled {
	background: #f0f2f4;
	color: #6b7680;
	cursor: not-allowed;
}

.anuncie-form__hint {
	margin: 0.45rem 0 0;
	font-size: 0.92rem;
	color: #5d6771;
}

.anuncie-account__links {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.75rem;
}

.anuncie-form__label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.anuncie-form__media-preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	border: 1px solid var(--as-color-border);
	border-radius: 0.85rem;
	background: linear-gradient(180deg, #fff, #f7f8f2);
}

.anuncie-form__media-preview img {
	display: block;
	width: min(180px, 100%);
	max-height: 180px;
	object-fit: contain;
}

.anuncie-form__row--locations {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.anuncie-dashboard__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.anuncie-dashboard-card h2 {
	margin-top: 0;
}

.anuncie-dashboard-card p:last-child {
	margin-bottom: 0;
}

.anuncie-notice {
	padding: 0.9rem 1rem;
	border-radius: 0.75rem;
	margin: 0 0 1rem;
}

.anuncie-notice--warning {
	background: #fff3cd;
	color: #5f4700;
}

.anuncie-notice--info {
	background: #e8f1ff;
	color: #124190;
}

.anuncie-notice--error {
	background: #fdeaea;
	color: #8a2020;
}

.anuncie-notice--success {
	background: #e6f6ea;
	color: #205b2a;
}

.anuncie-directory-filter__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.anuncie-filter-choice {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.85rem;
	border: 1px solid var(--as-color-border);
	border-radius: 999px;
	background: #fff;
}

.anuncie-term-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
}

.anuncie-term-card {
	display: block;
	padding: 1rem;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--as-color-border);
	border-radius: 0.75rem;
}

.anuncie-empty-state--panel,
.anuncie-panel-card {
	padding: 1.25rem;
	border: 1px solid var(--as-color-border);
	border-radius: 1rem;
	background: linear-gradient(180deg, #fff, #fbfbf8);
}

.anuncie-panel-card--locked {
	border-color: #f2d28a;
	background: linear-gradient(180deg, #fffaf0, #fff4da);
}

.anuncie-panel-card--locked h2,
.anuncie-empty-state--panel p {
	margin-top: 0;
}

.pagination-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 2rem 0 0;
}

.pagination-nav a,
.pagination-nav span {
	display: inline-flex;
	min-width: 2.5rem;
	justify-content: center;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--as-color-border);
	border-radius: 0.65rem;
	text-decoration: none;
	background: #fff;
}

.section-header,
.section-actions {
	margin-bottom: 1rem;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

@media (max-width: 720px) {
	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.anuncie-account--public .archive-header {
		text-align: left;
	}

	.site-footer__inner,
	.anuncie-form__row--locations {
		display: grid;
		grid-template-columns: 1fr;
	}

	.anuncie-company-card,
	.anuncie-company-single__layout {
		grid-template-columns: 1fr;
	}
}
