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

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

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

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

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

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

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

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

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

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

/* "Åbent nu"-status */
.jg-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.jg-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.jg-star {
	color: #dcdce2;
}

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

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

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

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

.jg-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.jg-anmeldelse-form input[type="text"],
.jg-anmeldelse-form input[type="email"],
.jg-anmeldelse-form input[type="url"],
.jg-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;
}

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

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

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

.jg-anmeldelse-form .submit,
.jg-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.jg-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.jg-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;
}

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

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

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