/*
Theme Name:   SenSéjour
Theme URI:    https://sensejour.sn/
Description:  Thème enfant de Houzez pour SenSéjour : nouvel accueil, liste des logements, fiche logement et demande de réservation sans paiement en ligne.
Author:       SenSéjour
Template:     houzez
Version:      1.1.0
Text Domain:  sensejour
*/

/* ---------- Charte ---------- */
.sj-body {
	--sj-navy: #1D4E8F;
	--sj-navy-dark: #163C70;
	--sj-navy-soft: #E7EEF7;
	--sj-orange: #F28A1A;
	--sj-orange-soft: #FBEFD9;
	--sj-ink: #1B2A2F;
	--sj-text: #33404A;
	--sj-muted: #5B6770;
	--sj-sand: #FBF7F1;
	--sj-line: #E6DFD3;
	--sj-line-soft: #EFE9DE;
	--sj-field: #C9C0B1;
	--sj-ph: #E9E1D3;
	--sj-err: #8C2B1E;
	--sj-err-soft: #F7E1DD;
	--sj-radius: 16px;
	margin: 0;
	background: var(--sj-sand);
}

/* Masque ce que le thème parent ajoute en bas de page (fenêtres de connexion, comparateur…). */
.sj-body > *:not(.sj-site):not(script):not(style):not(link):not(#wpadminbar):not(dialog) { display: none !important; }

.sj-site, .sj-site *, .sj-site *::before, .sj-site *::after { box-sizing: border-box; }
.sj-site {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sj-ink);
	background: var(--sj-sand);
	-webkit-font-smoothing: antialiased;
}
.sj-site img { max-width: 100%; display: block; }
.sj-site a { color: var(--sj-navy); }
.sj-site a:hover { color: var(--sj-navy-dark); }
.sj-site h1, .sj-site h2, .sj-site h3, .sj-site p, .sj-site ul, .sj-site dl, .sj-site dd, .sj-site fieldset { margin: 0; }
.sj-site input, .sj-site select, .sj-site button, .sj-site textarea { font: inherit; color: inherit; }
.sj-site :focus-visible { outline: 3px solid var(--sj-orange); outline-offset: 2px; }
.sj-site h1, .sj-site h2, .sj-site h3, .sj-site h4, .sj-site legend { text-transform: none; color: inherit; }

.sj-h { font-family: "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -0.01em; font-weight: 700; }
.sj-h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.sj-h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 24px !important; }
.sj-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sj-muted { color: var(--sj-muted); }
.sj-hint { font-size: 13px; color: var(--sj-muted); margin-top: 8px !important; }
.sj-center { text-align: center; }
.sj-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sj-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; }
.sj-skip:focus { left: 8px; }
.sj-ic { flex: none; }

/* ---------- Boutons ---------- */
.sj-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px;
	font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.sj-site .sj-btn--primary { background: var(--sj-navy); color: #fff; }
.sj-site .sj-btn--primary:hover { background: var(--sj-navy-dark); color: #fff; }
.sj-site .sj-btn--accent { background: var(--sj-orange); color: var(--sj-ink); }
.sj-site .sj-btn--accent:hover { background: #E07A0C; color: var(--sj-ink); }
.sj-site .sj-btn--light { background: #fff; color: var(--sj-ink); border-color: var(--sj-ink); }
.sj-btn--lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.sj-btn--block { width: 100%; }
.sj-link-strong { font-weight: 600; }

/* ---------- En-tête ---------- */
.sj-header { background: #fff; border-bottom: 1px solid var(--sj-line); position: relative; z-index: 20; }
.sj-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.sj-logo img { height: 60px; width: auto; }
.sj-nav { display: flex; align-items: center; gap: 24px; flex: 1; font-size: 15px; }
.sj-site .sj-nav a:not(.sj-btn) { color: var(--sj-ink); text-decoration: none; padding: 10px 0; }
.sj-site .sj-nav a:not(.sj-btn):hover { color: var(--sj-navy); }
.sj-nav__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.sj-menu-toggle { display: none; }
.sj-menu-btn { display: none; }

@media (max-width: 900px) {
	.sj-menu-btn { display: flex; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
	.sj-menu-btn span, .sj-menu-btn span::before, .sj-menu-btn span::after { display: block; width: 22px; height: 2px; background: var(--sj-ink); position: relative; content: ""; }
	.sj-menu-btn span::before { position: absolute; top: -7px; }
	.sj-menu-btn span::after { position: absolute; top: 7px; }
	.sj-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sj-line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
	.sj-menu-toggle:checked ~ .sj-nav { display: flex; }
	.sj-nav__end { margin: 8px 0 0; flex-direction: column; align-items: stretch; }
	.sj-logo img { height: 52px; }
}

/* ---------- Accueil ---------- */
.sj-hero { padding: 56px 0 48px; }
.sj-hero__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.sj-hero__text { flex: 1 1 480px; min-width: 0; }
.sj-eyebrow { font-size: 14px; font-weight: 600; color: var(--sj-navy); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px !important; }
.sj-hero__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.sj-lead { margin-top: 20px !important; font-size: 18px; line-height: 1.55; color: #4A5560; max-width: 560px; }
.sj-hero__img { flex: 1 1 420px; min-width: 0; height: 360px; border-radius: 20px; overflow: hidden; background: var(--sj-ph); }
.sj-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.sj-search {
	margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px;
	padding: 8px; background: #fff; border: 1px solid var(--sj-line); border-radius: var(--sj-radius);
	box-shadow: 0 8px 24px rgba(27, 42, 47, 0.06);
}
.sj-search__field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px; }
.sj-search__field + .sj-search__field { border-left: 1px solid var(--sj-line-soft); }
.sj-search__field label { font-size: 12px; font-weight: 600; color: #4A5560; }
.sj-search__field input, .sj-search__field select { border: 0; background: transparent; font-size: 16px; padding: 4px 0; min-height: 32px; width: 100%; }
.sj-search__go { min-height: 56px; border-radius: 12px; font-size: 16px; }
.sj-search--compact { margin-top: 0; box-shadow: none; }
@media (max-width: 760px) { .sj-search__field + .sj-search__field { border-left: 0; border-top: 1px solid var(--sj-line-soft); } }

.sj-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sj-site .sj-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid #E1D8C9;
	border-radius: 999px; background: #fff; color: var(--sj-ink); font-size: 14px; text-decoration: none;
}
.sj-chip span { color: var(--sj-muted); }
.sj-site .sj-chip--on { background: var(--sj-navy-soft); border-color: transparent; color: var(--sj-navy-dark); font-weight: 500; min-height: 34px; padding: 0 12px; }
.sj-chips--active { margin: 0 0 20px; }

.sj-band { padding: 44px 0; background: #fff; border-top: 1px solid var(--sj-line); border-bottom: 1px solid var(--sj-line); }
.sj-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sj-step { display: flex; gap: 16px; align-items: flex-start; }
.sj-step__n { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sj-navy-soft); color: var(--sj-navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sj-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.sj-step p { font-size: 15px; color: #4A5560; }

.sj-section { padding: 56px 0 8px; }
.sj-section--last { padding-bottom: 64px; }
.sj-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sj-section__head .sj-h2 { margin-bottom: 0 !important; }

.sj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.sj-site .sj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sj-line); border-radius: var(--sj-radius); overflow: hidden; text-decoration: none; color: var(--sj-ink); transition: box-shadow .15s; }
.sj-site .sj-card:hover { color: var(--sj-ink); box-shadow: 0 10px 28px rgba(27, 42, 47, 0.1); }
.sj-card__img { aspect-ratio: 4 / 3; background: var(--sj-ph); }
.sj-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sj-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sj-card__meta { font-size: 13px; color: var(--sj-muted); }
.sj-card__name { font-size: 16px; font-weight: 600; line-height: 1.35; }
.sj-card__price { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 16px; }
.sj-card__price .sj-muted { font-size: 13px; }
.sj-card__total { margin-left: auto; font-size: 13px; color: #4A5560; }

.sj-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.sj-site .sj-area { display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 18px; border-radius: 14px; background: var(--sj-navy); color: #fff; text-decoration: none; }
.sj-site .sj-area:hover { background: var(--sj-navy-dark); color: #fff; }
.sj-area .sj-h { font-size: 20px; }
.sj-area span + span { font-size: 14px; color: #D3DEEC; }

.sj-cta { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 20px; background: var(--sj-navy); color: #fff; }
.sj-cta > div { flex: 1 1 480px; min-width: 0; }
.sj-cta .sj-h2 { margin-bottom: 12px !important; }
.sj-cta p { font-size: 17px; color: #E7EEF7; }

/* ---------- Pied de page ---------- */
.sj-footer { background: var(--sj-ink); color: #C9D3D6; padding: 40px 0 24px; font-size: 14px; }
.sj-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.sj-footer__brand { font-size: 22px; color: #fff; }
.sj-footer__brand span { color: var(--sj-orange); }
.sj-footer p { margin-top: 8px !important; }
.sj-site .sj-footer a { color: #fff; }
.sj-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.sj-footer__copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid #2C3E44; font-size: 13px; }

/* ---------- Liste des logements ---------- */
.sj-subsearch { background: #fff; border-bottom: 1px solid var(--sj-line); padding: 12px 0; }
.sj-results { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: flex-start; }
.sj-filters { flex: 1 1 260px; max-width: 300px; min-width: 0; }
.sj-filters__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.sj-filters__head .sj-h { font-size: 20px; }
.sj-filters fieldset { border: 0; border-top: 1px solid var(--sj-line); padding: 18px 0; }
.sj-filters legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.sj-filters select, .sj-range input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #E1D8C9; border-radius: 10px; background: #fff; font-size: 14px; }
.sj-range { display: flex; align-items: center; gap: 8px; }
.sj-check { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; cursor: pointer; }
.sj-check input { width: 18px; height: 18px; accent-color: var(--sj-navy); }
.sj-seg { display: flex; gap: 8px; }
.sj-seg label { flex: 1; }
.sj-seg input { position: absolute; opacity: 0; }
.sj-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #E1D8C9; border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.sj-seg input:checked + span { border-color: var(--sj-navy); background: var(--sj-navy-soft); color: var(--sj-navy-dark); font-weight: 600; }
.sj-seg input:focus-visible + span { outline: 3px solid var(--sj-orange); }
.sj-results__main { flex: 999 1 560px; min-width: 0; }
.sj-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.sj-results__head .sj-muted { margin-top: 4px !important; font-size: 14px; }
.sj-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sj-sort select { min-height: 44px; padding: 0 12px; border: 1px solid #E1D8C9; border-radius: 10px; background: #fff; }
.sj-grid--results { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.sj-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.sj-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid #E1D8C9; color: var(--sj-ink); text-decoration: none; font-size: 14px; background: #fff; }
.sj-pagination .current { background: var(--sj-ink); color: #fff; border-color: var(--sj-ink); }
.sj-empty { padding: 48px 24px; text-align: center; background: #fff; border: 1px solid var(--sj-line); border-radius: var(--sj-radius); }
.sj-empty .sj-h { font-size: 22px; margin-bottom: 8px; }
.sj-empty p { color: #4A5560; margin-bottom: 20px !important; }
@media (max-width: 860px) { .sj-filters { max-width: none; } }

/* ---------- Fiche logement ---------- */
.sj-single { padding-top: 20px; padding-bottom: 64px; }
.sj-crumbs { font-size: 14px; color: var(--sj-muted); margin-bottom: 16px; }
.sj-single__head { margin-bottom: 20px; }
.sj-single__head .sj-muted { margin-top: 8px !important; font-size: 15px; }
.sj-verified { color: var(--sj-navy); font-weight: 600; }

.sj-gallery { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 210px 210px; gap: 8px; border-radius: 18px; overflow: hidden; }
.sj-gallery img { width: 100%; height: 100%; object-fit: cover; background: var(--sj-ph); }
.sj-gallery img:first-child { grid-column: span 2; grid-row: span 2; }
.sj-gallery--few { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px; }
.sj-gallery--few img:first-child { grid-column: span 1; grid-row: span 1; }
.sj-gallery__all { position: absolute; right: 14px; bottom: 14px; }
@media (max-width: 760px) {
	.sj-gallery { grid-template-columns: 1fr; grid-template-rows: 260px; }
	.sj-gallery img:not(:first-child) { display: none; }
	.sj-gallery img:first-child { grid-column: auto; grid-row: auto; }
}
.sj-photos { width: min(1100px, 96vw); max-height: 92vh; border: 0; border-radius: 16px; padding: 56px 16px 16px; background: var(--sj-sand); }
.sj-photos::backdrop { background: rgba(27, 42, 47, 0.7); }
.sj-photos img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 12px; display: block; }
.sj-photos__close { position: absolute; top: 10px; right: 12px; }

.sj-single__cols { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 32px; align-items: flex-start; }
.sj-single__main { flex: 999 1 560px; min-width: 0; }
.sj-facts { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 28px; }
.sj-facts > div { flex: 1 1 130px; padding: 16px; border: 1px solid var(--sj-line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; }
.sj-facts strong { font-size: 22px; }
.sj-facts .sj-facts__small { font-size: 17px; line-height: 1.25; }
.sj-facts span { font-size: 13px; color: var(--sj-muted); }
.sj-block { padding: 28px 0; border-top: 1px solid var(--sj-line); }
.sj-block > .sj-h { font-size: 22px; margin-bottom: 16px; }
.sj-block > .sj-muted { margin: -8px 0 14px !important; font-size: 14px; }
.sj-prose { font-size: 16px; line-height: 1.65; color: var(--sj-text); }
.sj-prose p + p { margin-top: 12px; }
.sj-amenities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 24px; }
.sj-amenities li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sj-amenities .sj-ic { color: var(--sj-navy); }

.sj-cals { display: flex; flex-wrap: wrap; gap: 24px; }
.sj-cal { flex: 1 1 280px; max-width: 380px; padding: 18px; border: 1px solid var(--sj-line); border-radius: 14px; background: #fff; }
.sj-cal__title { font-weight: 600; text-align: center; margin-bottom: 10px; }
.sj-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sj-cal__dow { font-size: 12px; color: var(--sj-muted); text-align: center; margin-bottom: 4px; }
.sj-day { height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; cursor: pointer; color: var(--sj-ink); }
.sj-day:hover:not(:disabled) { background: var(--sj-navy-soft); }
.sj-day:disabled { color: #9AA1A6; cursor: default; }
.sj-day.is-busy { background: var(--sj-line-soft); color: #7A8085; text-decoration: line-through; }
.sj-day.is-range { background: var(--sj-navy-soft); color: var(--sj-navy-dark); }
.sj-day.is-start, .sj-day.is-end { background: var(--sj-navy); color: #fff; font-weight: 600; }
.sj-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: #4A5560; }
.sj-legend span { display: flex; align-items: center; gap: 6px; }
.sj-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sj-legend__sel { background: var(--sj-navy); }
.sj-legend__busy { background: var(--sj-line-soft); }
.sj-map { width: 100%; height: 280px; border: 0; border-radius: 14px; margin-bottom: 10px; background: var(--sj-ph); }

.sj-book { flex: 1 1 340px; max-width: 420px; min-width: 0; padding: 24px; border: 1px solid var(--sj-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(27, 42, 47, 0.08); position: sticky; top: 24px; scroll-margin-top: 24px; }
@media (max-width: 960px) { .sj-book { position: static; max-width: none; } }
.sj-book__price .sj-h { font-size: 28px; }
.sj-book__form { margin-top: 18px; }
.sj-book__form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.sj-book__form input:not([type=checkbox]), .sj-book__form select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--sj-field); border-radius: 10px; background: #fff; font-size: 16px; }
.sj-book__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.sj-book__dates label { margin-top: 0; }
.sj-book__wide { grid-column: span 2; }
.sj-book__wide label { margin-top: 12px; }
.sj-book__sum { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--sj-line-soft); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.sj-book__sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sj-book__total { font-weight: 600; padding-top: 8px; border-top: 1px solid var(--sj-line-soft); }
.sj-book__who { border: 0; padding: 18px 0 0; margin-top: 16px; border-top: 1px solid var(--sj-line-soft); }
.sj-book__who legend { font-size: 18px; padding: 0; }
.sj-book__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sj-book__tel { display: flex; gap: 8px; }
.sj-book__tel select { width: 88px !important; flex: none; }
.sj-site .sj-account { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 !important; padding: 14px; border-radius: 12px; background: var(--sj-navy-soft); font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.sj-account input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--sj-navy); }
.sj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sj-notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-top: 14px; }
.sj-notice--ok { background: var(--sj-navy-soft); color: var(--sj-navy-dark); margin-top: 0; }
.sj-notice--ok .sj-h { font-size: 22px; margin-bottom: 8px; }
.sj-notice--ok p + p { margin-top: 8px; }
.sj-notice--err { display: flex; gap: 10px; background: var(--sj-err-soft); color: var(--sj-err); }

/* ---------- Publication d'une annonce ---------- */
.sj-submit { padding-top: 32px; padding-bottom: 64px; }
.sj-gap { margin-bottom: 20px !important; }
.sj-panel { background: #fff; border: 1px solid var(--sj-line); border-radius: 18px; padding: 28px; }
.sj-panel--narrow { max-width: 520px; margin: 0 auto; }
.sj-submit__cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sj-submit__form { flex: 999 1 560px; min-width: 0; }
.sj-submit__side { flex: 1 1 280px; max-width: 360px; min-width: 0; }
.sj-submit__side .sj-h { font-size: 20px; margin-bottom: 12px; }
.sj-step-box { border: 0; border-top: 1px solid var(--sj-line); padding: 24px 0 8px; }
.sj-step-box legend { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.sj-step-box legend + * { clear: both; }
.sj-step-box .sj-step__n { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
.sj-submit label:not(.sj-check):not(.sj-thumb):not(.sj-drop), .sj-label, .sj-panel--narrow label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px !important; }
.sj-submit input:not([type=checkbox]):not([type=file]):not([type=submit]), .sj-submit select, .sj-submit textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--sj-field); border-radius: 10px; background: #fff; font-size: 16px; box-sizing: border-box;
}
.sj-submit textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.sj-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sj-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .sj-row2, .sj-row3 { grid-template-columns: 1fr; } }
.sj-price-box { margin-top: 14px; border-radius: 12px; background: var(--sj-navy-soft); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--sj-navy-dark); }
.sj-price-box div { display: flex; justify-content: space-between; gap: 12px; }
.sj-price-box div:first-child { font-size: 16px; padding-bottom: 8px; border-bottom: 1px solid #C9D8EC; }
.sj-site .sj-drop { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 22px; border: 2px dashed var(--sj-field); border-radius: 14px; text-align: center; cursor: pointer; font-size: 14px; color: var(--sj-muted); }
.sj-drop strong { color: var(--sj-navy); font-size: 16px; }
.sj-drop input { margin: 10px auto 0; font-size: 14px; max-width: 100%; }
.sj-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sj-thumbs:empty { display: none; }
.sj-thumb { display: flex; flex-direction: column; gap: 4px; width: 104px; font-size: 12px; cursor: pointer; }
.sj-thumb img { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; background: var(--sj-ph); }
.sj-thumb input { accent-color: var(--sj-err); }
.sj-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.sj-submit button[type=submit] { margin-top: 24px; }
.sj-mine { list-style: none; padding: 0; margin: 0 0 16px !important; }
.sj-mine li { padding: 12px 0; border-bottom: 1px solid var(--sj-line-soft); display: flex; flex-direction: column; gap: 2px; }
.sj-mine a { font-weight: 600; text-decoration: none; }
.sj-mine .sj-hint { margin: 0 !important; }
.sj-panel--narrow #loginform p { margin: 0; }
.sj-panel--narrow #loginform input[type=text], .sj-panel--narrow #loginform input[type=password] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--sj-field); border-radius: 10px; font-size: 16px; box-sizing: border-box; }
.sj-panel--narrow #loginform .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.sj-panel--narrow #loginform input[type=submit] { margin-top: 16px; width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: var(--sj-navy); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
