/*
 * Stedsidens top og delte billeder: mærkningen af illustrationsfotoet,
 * formularen "Del et billede" (Listify-popup) og beskeden efter indsendelse.
 * Bygger på child-temaets tokens.
 */

/* ------------------------------------------------------------------ */
/* Mærkningen af illustrationsfotoet                                   */
/* ------------------------------------------------------------------ */

/* Ligger i heroens flow under titel og knapper, så den aldrig dækker dem.
   z-index løfter den over Listifys mørke overlay (z-index 5) på niveau med
   indholdet (.cover-wrapper, z-index 10). */
.listing-cover .gc-illu-ramme {
	position: relative;
	z-index: 10;
	margin-top: 20px;
}

/* Grid frem for flex-wrap: så bliver boksen kun så bred som mærket og
   knappen (eller krediteringen), ikke som alle tre på én linje. */
.listing-cover .gc-illu {
	display: inline-grid;
	grid-template-columns: auto auto;
	justify-content: start;
	align-items: center;
	gap: 8px 16px;
	max-width: 100%;
	padding: 10px 14px;
	border-radius: var(--gc-radius-lille, 10px);
	background: rgba(20, 32, 25, 0.8);
	box-shadow: 0 2px 14px rgba(10, 20, 14, 0.3);
	color: var(--gc-hvid, #fffdf9);
	text-shadow: none;
	backdrop-filter: blur(4px);
}

.listing-cover .gc-illu__maerke {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gc-hvid, #fffdf9);
}

.listing-cover .gc-illu__ikon {
	flex: 0 0 auto;
}

.listing-cover .gc-illu .gc-illu__del {
	display: inline-block;
	justify-self: start;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--gc-hvid, #fffdf9);
	color: var(--gc-skov, #2f4a3a);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	text-shadow: none;
}

.listing-cover .gc-illu .gc-illu__del strong {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.listing-cover .gc-illu .gc-illu__del:hover,
.listing-cover .gc-illu .gc-illu__del:focus-visible {
	background: var(--gc-salvie-lys, #dde5d6);
	color: var(--gc-skov-moerk, #1f3329);
}

.listing-cover .gc-illu .gc-illu__del:focus-visible {
	outline: 2px solid var(--gc-hvid, #fffdf9);
	outline-offset: 2px;
}

/* Fotografens kreditering (licenskrav): mindre, men læsbar. */
.listing-cover .gc-illu .gc-illu__kredit {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 253, 249, 0.82);
	text-shadow: none;
}

.listing-cover .gc-illu .gc-illu__kredit a {
	color: inherit;
	text-shadow: none;
	text-decoration-color: rgba(255, 253, 249, 0.5);
}

/* Under Listifys tabletbredde står mærket, knappen og krediteringen under
   hinanden i fuld bredde. */
@media (max-width: 767px) {
	.listing-cover .gc-illu-ramme {
		margin-top: 16px;
	}

	.listing-cover .gc-illu {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		padding: 10px 12px;
	}
}

@media (max-width: 600px) {
	.listing-cover .gc-illu__maerke {
		font-size: 14px;
	}

	.listing-cover .gc-illu .gc-illu__del {
		font-size: 13px;
	}
}

/* ------------------------------------------------------------------ */
/* Knappen "Del et billede" i heroen                                   */
/* ------------------------------------------------------------------ */

/* Listify viser links i heroen som hvid tekst direkte på fotoet, som
   ikke kan læses på lyse billeder. En mørk, halvgennemsigtig pille som
   "Gem sted" (favoritter.css). Selektoren slår Listifys inline-CSS for
   ".listing-cover.no-image a:not(.button)", så teksten også er hvid dér. */
.listing-cover .content-single-job_listing-actions-start a.gc-del-knap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 18px 8px 14px;
	border: 1px solid rgba(255, 253, 249, 0.6);
	border-radius: 999px;
	background: rgba(20, 32, 25, 0.55);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	text-shadow: none;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.listing-cover .content-single-job_listing-actions-start a.gc-del-knap:hover,
.listing-cover .content-single-job_listing-actions-start a.gc-del-knap:focus-visible {
	border-color: #fff;
	background: rgba(20, 32, 25, 0.72);
	color: #fff;
}

.listing-cover .content-single-job_listing-actions-start a.gc-del-knap:focus-visible {
	outline: 2px solid var(--gc-hvid, #fffdf9);
	outline-offset: 2px;
}

.listing-cover .content-single-job_listing-actions-start a.gc-del-knap i {
	margin: 0;
	font-size: 20px;
}

/* ------------------------------------------------------------------ */
/* Formularen "Del et billede"                                         */
/* ------------------------------------------------------------------ */

.gc-del-popup {
	max-width: 520px;
}

/* Uden JavaScript åbner knappen ikke en popup, men springer hertil. */
.gc-del-popup:target {
	display: block;
}

.gc-del-intro {
	margin: 0 0 18px;
	color: var(--gc-tekst-bloed, #4a554d);
}

.gc-del-form .gc-del-felt {
	margin: 0 0 16px;
}

.gc-del-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: var(--gc-tekst, #26302a);
}

.gc-del-form input[type="text"],
.gc-del-form input[type="email"],
.gc-del-form input[type="file"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.gc-del-form input[type="file"] {
	padding: 12px;
	border: 1px dashed var(--gc-salvie, #a9b8a0);
	border-radius: var(--gc-radius-lille, 10px);
	background: var(--gc-hvid, #fffdf9);
	color: var(--gc-tekst, #26302a);
	font-size: 14px;
}

.gc-del-form .required {
	color: var(--gc-terracotta, #b8683f);
}

.gc-del-hjaelp {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--gc-tekst-bloed, #4a554d);
}

/* Bekræftelsen: afkrydsning og tekst på samme linje. */
.gc-del-form .gc-del-samtykke {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: var(--gc-radius-lille, 10px);
	background: var(--gc-sand, #ede4d3);
}

.gc-del-form .gc-del-samtykke input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.gc-del-form .gc-del-samtykke label {
	margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.45;
}

.gc-del-form .gc-del-send {
	margin: 0;
}

.gc-del-form .gc-del-send .button {
	width: 100%;
}

.gc-del-form .gc-del-send .button[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.gc-del-note {
	margin: 12px 0 0;
	font-size: 13px;
	text-align: center;
	color: var(--gc-tekst-bloed, #4a554d);
}

/* ------------------------------------------------------------------ */
/* Besked efter indsendelse                                            */
/* ------------------------------------------------------------------ */

.gc-foto-besked {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--gc-radius-lille, 10px);
	border-left: 4px solid var(--gc-mos, #5b6e45);
	background: var(--gc-salvie-lys, #dde5d6);
	color: var(--gc-tekst, #26302a);
	scroll-margin-top: 120px;
}

.gc-foto-besked--fejl {
	border-left-color: var(--gc-terracotta, #b8683f);
	background: var(--gc-sand, #ede4d3);
}

.gc-foto-besked p {
	margin: 0;
}

.gc-foto-besked strong {
	color: var(--gc-tekst, #26302a);
}

.gc-foto-besked__igen {
	font-weight: 600;
	white-space: nowrap;
}
