/* Barefoot Re-Wear – vlastný formulár inzerátu */
.brw-listing-form-wrap {
	--brw-primary: #56626d;
	--brw-primary-dark: #414b54;
	--brw-border: #d8dde1;
	--brw-soft: #f6f7f8;
	--brw-text: #25313a;
	max-width: 820px;
	margin: 0 auto;
	color: var(--brw-text);
}
.brw-listing-form { display: grid; gap: 18px; }
.brw-listing-form h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); }
.brw-section {
	background: #fff;
	border: 1px solid var(--brw-border);
	border-radius: 14px;
	padding: clamp(16px, 4vw, 28px);
	box-shadow: 0 2px 12px rgba(20, 30, 38, .04);
}
.brw-section h2 { margin: 0 0 18px; font-size: 21px; }
.brw-section h3 { margin: 20px 0 12px; font-size: 17px; }
.brw-field { margin: 0 0 20px; }
.brw-field:last-child { margin-bottom: 0; }
.brw-field > label,
.brw-field > legend,
.brw-tile-field > legend {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}
.brw-listing-form input[type="text"],
.brw-listing-form input[type="number"],
.brw-listing-form textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--brw-border);
	border-radius: 10px;
	padding: 11px 13px;
	font: inherit;
	box-sizing: border-box;
	background: #fff;
}
.brw-listing-form textarea { resize: vertical; }
.brw-listing-form input:focus,
.brw-listing-form textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--brw-primary) 30%, transparent);
	border-color: var(--brw-primary);
}
.brw-photo-upload {
	min-height: 170px;
	border: 2px dashed var(--brw-border);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	text-align: center;
	background: var(--brw-soft);
	padding: 22px;
}
.brw-photo-upload:hover { border-color: var(--brw-primary); }
.brw-photo-upload input { position: absolute; opacity: 0; pointer-events: none; }
.brw-photo-icon { font-size: 38px; line-height: 1; }
.brw-photo-upload small { opacity: .72; }
.brw-photo-preview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.brw-photo-preview figure {
	margin: 0;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	background: var(--brw-soft);
}
.brw-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.brw-photo-preview figcaption {
	position: absolute;
	left: 6px; bottom: 6px;
	background: rgba(0,0,0,.65);
	color: #fff;
	border-radius: 999px;
	padding: 3px 7px;
	font-size: 11px;
}
.brw-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.brw-tile { cursor: pointer; min-width: 0; }
.brw-tile input { position: absolute; opacity: 0; pointer-events: none; }
.brw-tile span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--brw-border);
	border-radius: 10px;
	background: #fff;
	text-align: center;
	transition: .15s ease;
}
.brw-tile:hover span { border-color: var(--brw-primary); }
.brw-tile input:checked + span {
	background: var(--brw-primary);
	border-color: var(--brw-primary);
	color: #fff;
	font-weight: 700;
}
.brw-tile input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--brw-primary) 35%, transparent);
}
.brw-combobox { position: relative; }
.brw-combobox-control { position: relative; }
.brw-combobox-control input[type="text"] { padding-right: 48px; }
.brw-combobox-toggle {
	position: absolute;
	right: 1px; top: 1px; bottom: 1px;
	width: 46px;
	border: 0;
	border-left: 1px solid var(--brw-border);
	border-radius: 0 9px 9px 0;
	background: #fff;
	cursor: pointer;
	font-size: 22px;
}
.brw-combobox-options {
	position: absolute;
	z-index: 40;
	left: 0; right: 0;
	max-height: 260px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--brw-border);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(25, 36, 44, .16);
	margin-top: 5px;
	padding: 5px;
}
.brw-combobox-options button {
	display: block;
	width: 100%;
	border: 0 !important;
	background: #fff !important;
	color: var(--brw-text) !important;
	-webkit-text-fill-color: var(--brw-text) !important;
	font: inherit !important;
	font-weight: 400 !important;
	padding: 10px !important;
	text-align: left !important;
	border-radius: 7px;
	cursor: pointer;
	box-shadow: none !important;
}
.brw-combobox-options button:hover,
.brw-combobox-options button:focus { background: var(--brw-soft); }
.brw-combobox-empty { padding: 12px; opacity: .7; }
.brw-extra-section details > summary {
	cursor: pointer;
	font-size: 20px;
	font-weight: 700;
	list-style: none;
}
.brw-extra-section details > summary::-webkit-details-marker { display: none; }
.brw-extra-section details > summary::after { content: "⌄"; float: right; }
.brw-extra-section details[open] > summary::after { content: "⌃"; }
.brw-extra-content { padding-top: 22px; }
.brw-measure-enable {
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-weight: 700;
}
.brw-measure-control { margin-top: 12px; }
.brw-measure-control input[type="range"] {
	width: 100%;
	accent-color: var(--brw-primary);
}
.brw-price-control { display: flex; align-items: center; gap: 10px; }
.brw-price-control input { max-width: 220px; }
.brw-price-control span { font-size: 22px; font-weight: 700; }
.brw-submit {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 11px;
	background: var(--brw-primary);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
}
.brw-submit:hover { background: var(--brw-primary-dark); }
.brw-message {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
	background: var(--brw-soft);
}
.brw-success { background: #e9f5ec; }
.brw-error { background: #fbecec; }
[hidden] { display: none !important; }

@media (min-width: 700px) {
	.brw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brw-category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.brw-section { border-radius: 10px; padding: 16px; }
	.brw-photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brw-tiles { grid-template-columns: 1fr 1fr; }
}

.brw-combobox-options button[hidden] { display: none !important; }

.brw-multiple-note {
	display: block;
	margin-top: 4px;
	font-weight: 400;
	font-size: 13px;
	opacity: .68;
}


/* =========================================================
 * BRW – EDITÁCIA + ULOŽIŤ AKO KONCEPT
 * ========================================================= */

.brw-existing-photos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}
.brw-existing-photos figure {
	margin: 0;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	background: var(--brw-soft);
}
.brw-existing-photos img { width: 100%; height: 100%; object-fit: cover; }
.brw-existing-photos figcaption {
	position: absolute;
	left: 6px;
	bottom: 6px;
	background: rgba(0,0,0,.65);
	color: #fff;
	border-radius: 999px;
	padding: 3px 7px;
	font-size: 11px;
}
.brw-photo-note { margin: 0 0 14px; font-size: 13px; opacity: .72; }
.brw-form-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: 12px;
}
.brw-form-actions .brw-submit { width: 100%; }
.brw-draft {
	width: 100%;
	min-height: 54px;
	border: 1px solid var(--brw-primary);
	border-radius: 11px;
	background: #fff;
	color: var(--brw-primary);
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}
.brw-draft:hover { background: var(--brw-soft); }

@media (max-width: 520px) {
	.brw-existing-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brw-form-actions { grid-template-columns: 1fr; }
}
