/* =========================================================================
 * Journalen Erhverv – frontend
 * ====================================================================== */

/* Layout ------------------------------------------------------------------ */
.je-erhverv-side {
	width: 100%;
}

.je-side-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 20px 8px;
}

.je-side-billede img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	margin-bottom: 20px;
}

.je-side-titel {
	margin: 0 0 14px;
	line-height: 1.15;
}

.je-side-brodtekst {
	line-height: 1.7;
	margin-bottom: 8px;
}

.je-side-brodtekst > *:last-child {
	margin-bottom: 0;
}

/* Detaljer (fakta + kort) ------------------------------------------------- */
.je-detaljer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
	margin: 28px 0;
}

@media (max-width: 782px) {
	.je-detaljer {
		grid-template-columns: 1fr;
	}
}

.je-info-kort {
	background: #f7f7f9;
	border: 1px solid #e8e8ed;
	border-radius: 14px;
	padding: 22px 24px;
}

/* "Åbent nu"-status */
.je-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
}

.je-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}

.je-status-aaben {
	background: #e6f6ec;
	color: #157a3a;
}

.je-status-lukket {
	background: #fdECEC;
	color: #b32d2e;
}

/* Fakta-liste */
.je-fakta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.je-fakta li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 10px;
	line-height: 1.5;
}

.je-fakta li:last-child {
	margin-bottom: 0;
}

.je-ikon {
	flex: 0 0 auto;
}

.je-fakta-tekst {
	min-width: 0;
	word-break: break-word;
}

.je-fakta-label {
	font-weight: 600;
}

.je-fakta a {
	text-decoration: none;
	word-break: break-word;
}

.je-fakta a:hover {
	text-decoration: underline;
}

/* Åbningstider – nulstiller temaets tabel-styling bevidst */
.je-aabningstider,
.je-aabningstider tbody,
.je-aabningstider tr,
.je-aabningstider th,
.je-aabningstider td,
.je-aabningstider caption {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.je-aabningstider {
	width: 100% !important;
	border-collapse: collapse !important;
	margin-top: 6px !important;
	font-size: 0.95rem;
	table-layout: auto;
}

.je-aabningstider caption {
	text-align: left !important;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6a6a72;
	padding: 0 0 8px !important;
	caption-side: top;
}

.je-aabningstider th,
.je-aabningstider td {
	padding: 7px 0 !important;
	border-bottom: 1px solid #e8e8ed !important;
	vertical-align: baseline;
}

.je-aabningstider th {
	text-align: left !important;
	font-weight: 500 !important;
	color: inherit !important;
}

.je-aabningstider td {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.je-aabningstider tr:last-child th,
.je-aabningstider tr:last-child td {
	border-bottom: 0 !important;
}

.je-aabningstider .je-i-dag th,
.je-aabningstider .je-i-dag td {
	font-weight: 700 !important;
}

.je-aabningstider .je-i-dag th::after {
	content: " · i dag";
	font-weight: 400;
	color: #9a9aa2;
}

.je-aabningstider .je-lukket {
	color: #b32d2e !important;
}

.je-aabningstider-note {
	margin: 8px 0 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #8a8a92;
	font-style: italic;
}

/* Kort -------------------------------------------------------------------- */
.je-map {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e8e8ed;
	z-index: 0;
}

.je-map-single {
	height: 100%;
	min-height: 340px;
}

@media (max-width: 782px) {
	.je-map-single {
		height: 320px;
	}
}

.je-map-gruppe {
	height: 440px;
	margin-bottom: 28px;
}

.leaflet-container a {
	box-shadow: none;
}

/* SEO-tekst --------------------------------------------------------------- */
.je-seo-tekst {
	margin-top: 30px;
	line-height: 1.75;
}

.je-seo-tekst > *:first-child {
	margin-top: 0;
}

/* Anmeldelser ------------------------------------------------------------- */
.je-anmeldelser {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e8e8ed;
}

.je-anmeldelser-titel {
	margin: 0 0 18px;
}

.je-snit-boks {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #f7f7f9;
	border: 1px solid #e8e8ed;
	border-radius: 14px;
	padding: 18px 22px;
	margin-bottom: 26px;
}

.je-snit-tal {
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
	color: #1d1d1f;
}

.je-snit-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.je-snit-antal {
	font-size: 0.9rem;
	color: #6a6a72;
}

/* Stjerner (visning) */
.je-stars {
	display: inline-flex;
	letter-spacing: 2px;
	line-height: 1;
	font-size: 1.15rem;
}

.je-star {
	color: #dcdce2;
}

.je-star-fyldt {
	color: #f5a623;
}

.je-anmeldelse-liste {
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
}

.je-anmeldelse {
	display: flex;
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid #efeff2;
}

.je-anmeldelse:first-child {
	padding-top: 0;
}

.je-anmeldelse-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #e7ecf3;
	color: #37506e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.05rem;
}

.je-anmeldelse-krop {
	flex: 1 1 auto;
	min-width: 0;
}

.je-anmeldelse-hoved {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 3px;
}

.je-anmeldelse-navn {
	font-weight: 700;
}

.je-anmeldelse-dato {
	color: #9a9aa2;
	font-size: 0.82rem;
	margin-left: auto;
	white-space: nowrap;
}

.je-anmeldelse .je-stars {
	font-size: 1rem;
	margin-bottom: 6px;
}

.je-anmeldelse-tekst {
	line-height: 1.6;
}

.je-anmeldelse-tekst p {
	margin: 0 0 8px;
}

.je-anmeldelse-tekst p:last-child {
	margin-bottom: 0;
}

.je-ingen-anmeldelser {
	color: #6a6a72;
	margin: 0 0 26px;
}

/* Anmeldelsesformular */
.je-anmeldelse-form {
	background: #f7f7f9;
	border: 1px solid #e8e8ed;
	border-radius: 14px;
	padding: 22px 24px 24px;
}

.je-anmeldelse-form .comment-reply-title {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 1.25rem;
}

.je-anmeldelse-form p {
	margin: 0 0 14px;
}

.je-anmeldelse-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 5px;
}

.je-anmeldelse-form input[type="text"],
.je-anmeldelse-form input[type="email"],
.je-anmeldelse-form input[type="url"],
.je-anmeldelse-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d6d6dc;
	border-radius: 9px;
	background: #fff;
	font-size: 1rem;
	font-family: inherit;
	line-height: 1.5;
}

.je-anmeldelse-form textarea {
	resize: vertical;
}

.je-anmeldelse-form input:focus,
.je-anmeldelse-form textarea:focus {
	outline: none;
	border-color: #378add;
	box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.18);
}

.je-anmeldelse-form .form-submit {
	margin-bottom: 0;
}

.je-anmeldelse-form .submit,
.je-anmeldelse-form input[type="submit"] {
	display: inline-block;
	background: #1d6fd6;
	color: #fff;
	border: 0;
	border-radius: 9px;
	padding: 12px 26px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.je-anmeldelse-form .submit:hover,
.je-anmeldelse-form input[type="submit"]:hover {
	background: #155bb0;
}

/* Stjernevælger i formularen */
.je-rating-input {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.je-rating-label {
	font-weight: 600;
	font-size: 0.9rem;
}

.je-stars-input {
	display: inline-flex;
	flex-direction: row-reverse;
}

.je-stars-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.je-stars-input label {
	color: #dcdce2;
	font-size: 30px;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	transition: color 0.12s ease;
	margin: 0;
}

.je-stars-input input:checked ~ label,
.je-stars-input label:hover,
.je-stars-input label:hover ~ label {
	color: #f5a623;
}

.je-stars-input input:focus-visible + label {
	outline: 2px solid #378add;
	outline-offset: 2px;
	border-radius: 3px;
}

/* FAQ (fuldbredde-bånd i bunden) ------------------------------------------ */
.je-faq-band {
	width: 100%;
	margin-top: 44px;
	padding: 40px 20px 48px;
	background: #f4f5f7;
	border-top: 1px solid #e8e8ed;
}

.je-faq-wrap {
	max-width: 1080px;
	margin: 0 auto;
}

.je-faq-titel {
	margin: 0 0 18px;
	text-align: center;
}

.je-faq-item {
	background: #fff;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
}

.je-faq-item[open] {
	border-color: #d3d8e0;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.05);
}

.je-faq-sp {
	list-style: none;
	cursor: pointer;
	padding: 16px 52px 16px 20px;
	font-weight: 600;
	font-size: 1.05rem;
	position: relative;
}

.je-faq-sp::-webkit-details-marker {
	display: none;
}

.je-faq-sp::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: #8a8a92;
}

.je-faq-item[open] .je-faq-sp::after {
	content: "\2013";
}

.je-faq-svar {
	padding: 0 20px 18px;
	line-height: 1.65;
	color: #3a3a40;
}

.je-faq-svar p {
	margin: 0;
}

/* Gruppevisning ----------------------------------------------------------- */
.je-map-gruppe {
	margin-bottom: 26px;
}

.je-gruppe-bokse {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 22px;
	margin-bottom: 30px;
}

.je-gruppe-boks {
	display: flex;
	flex-direction: column;
}

.je-boks-titel {
	margin: 0 0 14px;
	font-size: 1.2rem;
	line-height: 1.3;
}

.je-boks-titel a {
	text-decoration: none;
}

.je-boks-link {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid #e8e8ed;
}

.je-boks-link a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}

.je-gruppe-tekst {
	line-height: 1.75;
	margin-bottom: 8px;
}

.je-gruppe-tekst > *:first-child {
	margin-top: 0;
}

/* Butik-mærkat i samlede gruppeanmeldelser */
.je-anmeldelse-butik {
	font-size: 0.82rem;
	font-weight: 600;
	color: #37506e;
	text-decoration: none;
	background: #eef2f7;
	padding: 2px 9px;
	border-radius: 999px;
}

.je-anmeldelse-butik:hover {
	text-decoration: underline;
}

/* CTA: skriv en anmeldelse (gruppeside) */
.je-anmeld-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #e8e8ed;
}

.je-anmeld-cta-tekst {
	font-weight: 600;
}

.je-anmeld-knap {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 9px 16px;
	border: 1px solid #1d6fd6;
	color: #1d6fd6;
	border-radius: 9px;
	transition: background 0.15s ease, color 0.15s ease;
}

.je-anmeld-knap:hover {
	background: #1d6fd6;
	color: #fff;
}

/* Mere luft + adskillelse over FAQ på gruppesider */
.je-gruppe .je-faq {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e8e8ed;
}

.je-erhverv-indlejret {
	margin: 24px 0;
}
