/**
 * Babar Tools: Design 3, dark green header band (2026-11-14).
 *
 * A bold dark green band carries the tool name, the three steps and
 * the Free badge. Below it a calm, focused single-column form (720px)
 * with large fields, and the results below. The brand colour does the
 * heavy lifting, so the form itself stays quiet and easy.
 *
 * The tools navigation pills are gone (Babar, 2026-11-14): they were
 * irritating. The tool pages link to each other through the
 * related-tools block at the end of each page instead.
 *
 * Locked brand values (fallbacks):
 *   white, dark green #0C543E, pale mint #EBFFE2, black pill buttons,
 *   Inter. Spacing 8/16/24/32/48/72. Container 1200px.
 * Breakpoints: 1100px, 800px.
 */

.babar-tools {
	--bt-green: var(--babar-green, #0C543E);
	--bt-mint: var(--babar-mint, #EBFFE2);
	--bt-radius: 24px;
	--bt-space-1: 8px;
	--bt-space-2: 16px;
	--bt-space-3: 24px;
	--bt-space-4: 32px;
	max-width: 1100px;
	margin: 0 auto;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: var(--bt-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.06);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Use the space: on desktop the tool breaks out of a narrow page
 * content column and sits 1100px wide, centred on the page. The page
 * content on the tool pages is narrower than the container, so without
 * this the tool would sit in a narrow strip with white space on both
 * sides. On mobile the parent is already full width, so no breakout.
 * This uses negative margins, not a transform, so it does not create a
 * containing block that can interfere with the tab panels or other
 * content inside the tool. */
@media (min-width: 801px) {
	.babar-tools {
		width: min(1100px, calc(100vw - 32px));
		margin-left: calc((100% - min(1100px, calc(100vw - 32px))) / 2);
		margin-right: calc((100% - min(1100px, calc(100vw - 32px))) / 2);
	}
}

.babar-tools-note {
	padding: var(--bt-space-3);
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	background: #F8FAFC;
}

/* Dark green header band. */

.babar-tools-band {
	background: var(--bt-green);
	padding: 36px 48px 28px;
	color: #FFFFFF;
}

.babar-tools-band .babar-tools-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bt-mint);
	color: var(--bt-green);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 16px;
}

.babar-tools-band h2 {
	margin: 0;
	font-size: 36px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	max-width: 720px;
}

.babar-tools-band .babar-tools-desc {
	margin: 10px 0 0;
	font-size: 17px;
	color: #D1FAE5;
	max-width: 640px;
}

.babar-tools-band-steps {
	margin-top: 24px;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 14px;
	font-weight: 600;
	color: #A7F3D0;
}

.babar-tools-band-steps span b {
	color: #FFFFFF;
	margin-right: 6px;
}

/* Body: focused form column. */

.babar-tools-body {
	padding: 40px 48px 48px;
}

.babar-tools-form-col {
	max-width: 720px;
	margin: 0 auto;
}

/* Form sections. */

.babar-tools-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.babar-tools-section {
	margin-bottom: 36px;
}

.babar-tools-section:last-child {
	margin-bottom: 0;
}

.babar-tools-section-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.babar-tools-step {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--bt-green);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex: none;
	transform: translateY(2px);
}

.babar-tools-section-title h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.babar-tools-section-title span:last-child {
	font-size: 15px;
	color: #64748B;
}

/* Website address: large full-width input with a globe icon. */

.babar-tools-url-field {
	position: relative;
}

.babar-tools-url-field svg {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	color: #64748B;
	pointer-events: none;
}

.babar-tools-url-field input[type="url"] {
	width: 100%;
	padding: 18px 18px 18px 52px;
	border: 1.5px solid #CBD5E1;
	border-radius: 14px;
	font: inherit;
	font-size: 17px;
	background: #FFFFFF;
	color: #0F172A;
}

.babar-tools-url-field input[type="url"]:focus {
	outline: none;
	border-color: var(--bt-green);
	box-shadow: 0 0 0 3px rgba(12, 84, 62, 0.15);
}

.babar-tools-url-field input[type="url"]::placeholder {
	color: #94A3B8;
}

.babar-tools-url-actions {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.babar-tools-url-actions p {
	margin: 0;
	font-size: 14px;
	color: #64748B;
}

/* Fields: single column for the essentials, two columns behind the
 * "More details" toggle. */

.babar-tools-fields-col {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.babar-tools-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.babar-tools-field {
	display: flex;
	flex-direction: column;
	gap: var(--bt-space-1);
	min-width: 0;
}

.babar-tools-field.wide {
	grid-column: 1 / -1;
}

.babar-tools-field label {
	font-size: 16px;
	font-weight: 600;
}

.babar-tools-field input[type="text"],
.babar-tools-field input[type="url"],
.babar-tools-field input[type="number"],
.babar-tools-field select,
.babar-tools-field textarea {
	width: 100%;
	padding: 15px 18px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font: inherit;
	font-size: 17px;
	background: #FFFFFF;
	color: #0F172A;
}

.babar-tools-field input:focus,
.babar-tools-field select:focus,
.babar-tools-field textarea:focus {
	outline: none;
	border-color: var(--bt-green);
	box-shadow: 0 0 0 3px rgba(12, 84, 62, 0.15);
}

.babar-tools-field input::placeholder,
.babar-tools-field textarea::placeholder {
	color: #94A3B8;
}

.babar-tools-help {
	margin: 0;
	font-size: 14px;
	color: #64748B;
}

.babar-tools-error {
	color: #B91C1C;
	margin: 0;
}

/* The hidden attribute must actually hide an element, even when
 * that element also carries a display rule. Without this, a field
 * wrapper with display:flex (like the "Your call to action" box,
 * which only shows when "Custom" is chosen) stays visible while
 * its input is disabled, so it looks like a normal box that does
 * nothing when clicked. */
.babar-tools [hidden] {
	display: none !important;
}

/* Buttons: black pill, per the locked brand system. */

.babar-tools-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #FFFFFF;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.babar-tools-btn:hover,
.babar-tools-btn:focus {
	background: #000000;
	color: #FFFFFF;
}

.babar-tools-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.babar-tools-fetch-btn {
	background: var(--bt-green);
	white-space: nowrap;
}

.babar-tools-fetch-btn:hover,
.babar-tools-fetch-btn:focus {
	background: #0A4634;
}

.babar-tools-example {
	align-self: center;
	background: none;
	border: 0;
	padding: 0;
	color: var(--bt-green);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* "More details (optional)" toggle. The extra fields sit behind it, so
 * the form shows only what a visitor must fill. */
.babar-tools-more-wrap {
	margin-top: 24px;
	border-top: 1px solid #E2E8F0;
	padding-top: 20px;
}

.babar-tools-more-toggle {
	background: none;
	border: 0;
	padding: 0;
	color: var(--bt-green);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.babar-tools-more {
	margin-top: 18px;
}

/* Generate row. */

.babar-tools-generate {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	text-align: center;
}

.babar-tools-generate .babar-tools-submit {
	padding: 17px 44px;
	font-size: 18px;
}

.babar-tools-generate p {
	margin: 0;
	font-size: 14px;
	color: #64748B;
}

/* Stacked tools (Find Questions): the two tools render one after
 * the other, so give the second block room to breathe. */
.babar-tools + .babar-tools {
	margin-top: 32px;
}

/* Loading feedback: while a fetch or a generation runs, the button
 * shows a spinner and the status line cycles through short messages,
 * and the results area shows a loading panel where the result will
 * appear. The wait is the weird part; this keeps the visitor engaged
 * and tells them something is happening and it will be coming in a
 * moment. */
.babar-tools-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: babar-tools-spin 0.8s linear infinite;
	vertical-align: -3px;
	margin-right: 8px;
}

@keyframes babar-tools-spin {
	to {
		transform: rotate(360deg);
	}
}

.babar-tools-loading {
	background: #F0FDF4;
	border: 1px solid #D1FAE5;
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
}

.babar-tools-loading .babar-tools-spinner {
	border-color: #D1D5DB;
	border-top-color: #0C543E;
	width: 28px;
	height: 28px;
	border-width: 4px;
	margin-right: 0;
	vertical-align: baseline;
}

.babar-tools-loading-text {
	font-weight: 600;
	color: #0C543E;
	margin: 12px 0 20px;
}

.babar-tools-skeleton span {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
	background-size: 200% 100%;
	animation: babar-tools-shimmer 1.2s infinite;
	margin: 10px auto;
}

.babar-tools-skeleton span:nth-child(1) {
	width: 92%;
}

.babar-tools-skeleton span:nth-child(2) {
	width: 78%;
}

.babar-tools-skeleton span:nth-child(3) {
	width: 64%;
}

@keyframes babar-tools-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* Fetch confirm panel. */

.babar-tools-fetch-panel {
	margin-top: 24px;
	border: 1px solid #BBF7D0;
	border-radius: 20px;
	padding: 24px;
	background: var(--bt-mint);
}

.babar-tools-fetch-panel h3 {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
}

.babar-tools-fetch-panel > p {
	margin: 0 0 14px;
	font-size: 14px;
	color: #14532D;
}

.babar-tools-fetch-facts label {
	display: block;
	font-weight: 600;
	margin-top: var(--bt-space-2);
	font-size: 15px;
}

.babar-tools-fetch-facts label:first-child {
	margin-top: 0;
}

.babar-tools-fetch-facts input,
.babar-tools-fetch-facts textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #D1D5DB;
	border-radius: 12px;
	font: inherit;
	background: #FFFFFF;
}

.babar-tools-fetch-actions {
	margin-top: var(--bt-space-2);
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.babar-tools-fetch-hide {
	background: none;
	border: 0;
	padding: 0;
	color: var(--bt-green);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Results, below the form in the same column. */

.babar-tools-results {
	max-width: 720px;
	margin: 44px auto 0;
	border-top: 1px solid #E2E8F0;
	padding-top: 32px;
}

.babar-tools-results-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.babar-tools-results-head h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.babar-tools-copy-all {
	background: #FFFFFF;
	color: #111827;
	border: 1.5px solid #CBD5E1;
}

.babar-tools-copy-all:hover,
.babar-tools-copy-all:focus {
	border-color: #111827;
	background: #FFFFFF;
}

.babar-tools-output {
	margin-bottom: 0;
}

.babar-tools-output-inner {
	margin-bottom: 0;
}

.babar-tools-result {
	position: relative;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	padding: 24px;
	margin-bottom: 16px;
	background: #FFFFFF;
}

.babar-tools-result:last-child {
	margin-bottom: 0;
}

.babar-tools-result p {
	margin: 0 0 var(--bt-space-1);
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 16px;
}

.babar-tools-result p:last-child {
	margin-bottom: 0;
}

.babar-tools-copy {
	background: none;
	border: 1.5px solid #CBD5E1;
	border-radius: 999px;
	padding: 8px 18px;
	color: #111827;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools-copy:hover {
	border-color: var(--bt-green);
	color: var(--bt-green);
}

.babar-tools-chars {
	font-size: 14px;
	color: #64748B;
}

.babar-tools-warning {
	border-left: 4px solid #D97706;
	background: #FFFBEB;
	padding: var(--bt-space-2);
	border-radius: 0 12px 12px 0;
	margin-bottom: var(--bt-space-2);
}

.babar-tools-warning p {
	margin: 0;
}

.babar-tools-notice {
	font-size: 14px;
	color: #64748B;
	margin-bottom: var(--bt-space-2);
}

.babar-tools-question {
	display: flex;
	gap: var(--bt-space-1);
	align-items: flex-start;
	padding: var(--bt-space-1) 0;
	border-bottom: 1px solid #F1F5F9;
}

.babar-tools-question:last-child {
	border-bottom: 0;
}

.babar-tools-question input {
	margin-top: 4px;
}

.babar-tools-question-format {
	font-size: 14px;
	color: #64748B;
}

.babar-tools-set {
	margin-bottom: var(--bt-space-3);
}

.babar-tools-preview {
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: var(--bt-space-2);
	background: #FFFFFF;
}

.babar-tools-preview-title {
	color: #1A0DAB;
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 4px;
	word-break: break-word;
}

.babar-tools-preview-url {
	color: #006621;
	font-size: 14px;
	margin: 0 0 4px;
	word-break: break-all;
}

.babar-tools-preview-desc {
	color: #545454;
	font-size: 14px;
	margin: 0;
	word-break: break-word;
}

.babar-tools-truncated {
	color: #B91C1C;
	font-size: 14px;
}

/* Tabs (Find Questions). */

.babar-tools-tabs {
	display: flex;
	gap: var(--bt-space-1);
	margin-bottom: var(--bt-space-3);
}

.babar-tools-tab {
	padding: 10px 20px;
	border: 1px solid #D1D5DB;
	border-radius: 999px;
	background: #FFFFFF;
	color: #111827;
	font: inherit;
	cursor: pointer;
}

.babar-tools-tab:hover {
	background: #F3F4F6;
	border-color: #9CA3AF;
}

.babar-tools-tab.is-active {
	background: var(--bt-green);
	border-color: var(--bt-green);
	color: #FFFFFF;
}

.babar-tools-tab-panel {
	display: none;
}

.babar-tools-tab-panel.is-active {
	display: block !important;
}

/* Hub. */

.babar-tools-hub {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--bt-space-3) var(--bt-space-2);
}

.babar-tools-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--bt-space-3);
	margin-top: var(--bt-space-3);
}

.babar-tools-hub-card {
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: var(--bt-space-3);
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: var(--bt-space-2);
}

.babar-tools-hub-card h3 {
	margin: 0;
}

.babar-tools-hub-card p {
	margin: 0;
	flex: 1;
}

.babar-tools-hub-card .babar-tools-btn {
	align-self: flex-start;
}

/* Footer line. */

.babar-tools-footer {
	margin: 36px 0 0;
	font-size: 14px;
	color: #64748B;
	text-align: center;
}

@media (max-width: 1100px) {
	.babar-tools-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 800px) {
	.babar-tools {
		border-radius: 20px;
	}

	.babar-tools-band {
		padding: 28px 24px 24px;
	}

	.babar-tools-band h2 {
		font-size: 28px;
	}

	.babar-tools-body {
		padding: 28px 20px 32px;
	}

	.babar-tools-grid {
		grid-template-columns: 1fr;
	}

	.babar-tools-hub-grid {
		grid-template-columns: 1fr;
	}

	.babar-tools-submit,
	.babar-tools-copy-all {
		width: 100%;
		text-align: center;
	}
}

/* ================================================================
 * Client-side tools (v1.1.0).
 *
 * Review Calculator, EXIF Viewer, Paste Image and Geotag.
 * All selectors are scoped under .babar-tools. Brand tokens:
 * white, dark green #0C543E, pale mint #EBFFE2, black pill
 * buttons, Inter. Spacing 8/16/24/32/48/72.
 * ================================================================ */

/* --- Review Calculator --- */
/**
 * Babar Tools: Google Review Calculator extra CSS (v1.1.0).
 *
 * Snippet only: merge into assets/css/babar-tools.css. Every selector
 * is scoped under .babar-tools. Brand tokens: white, dark green
 * #0C543E, pale mint #EBFFE2, black pill buttons, Inter (inherited).
 * Reuses .babar-tools-field, .babar-tools-error, .babar-tools-help,
 * .babar-tools-btn and .babar-tools-copy-all from the shared sheet.
 */

/* Target pills and what-if quick counts. */
.babar-tools .bt-calc-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.babar-tools .bt-calc-pill,
.babar-tools .bt-calc-qty {
	padding: 10px 20px;
	border: 1.5px solid #CBD5E1;
	border-radius: 999px;
	background: #FFFFFF;
	color: #111827;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools .bt-calc-pill:hover,
.babar-tools .bt-calc-qty:hover {
	border-color: #0C543E;
	color: #0C543E;
}

.babar-tools .bt-calc-pill.is-active,
.babar-tools .bt-calc-qty.is-active {
	background: #0C543E;
	border-color: #0C543E;
	color: #FFFFFF;
}

/* "Using your star breakdown" note under the main fields. */
.babar-tools .bt-calc-breakdown-note {
	margin: 16px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #0C543E;
}

/* Expandable blocks: precise mode and "How did we calculate this?" */
.babar-tools .bt-calc-details {
	margin-top: 24px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 20px 24px;
	background: #F8FAFC;
}

.babar-tools .bt-calc-details summary {
	font-size: 16px;
	font-weight: 700;
	color: #0C543E;
	cursor: pointer;
}

.babar-tools .bt-calc-details p {
	margin: 12px 0 0;
	font-size: 15px;
	color: #334155;
}

.babar-tools .bt-calc-details p:first-of-type {
	margin-top: 14px;
}

/* Star breakdown: five small fields in a row, wrapping on mobile. */
.babar-tools .bt-calc-stars {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 16px;
}

.babar-tools .bt-calc-breakdown-summary {
	font-weight: 600;
	color: #0C543E;
}

/* Result panel. */
.babar-tools .bt-calc-result-wrap {
	margin-top: 32px;
}

.babar-tools .bt-calc-prompt {
	margin: 0;
	padding: 24px;
	border: 1px dashed #CBD5E1;
	border-radius: 16px;
	background: #F8FAFC;
	color: #64748B;
	font-size: 16px;
	text-align: center;
}

.babar-tools .bt-calc-result {
	border: 1px solid #BBF7D0;
	border-radius: 20px;
	padding: 28px;
	background: #EBFFE2;
}

.babar-tools .bt-calc-headline {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #0F172A;
}

.babar-tools .bt-calc-landing {
	margin: 0 0 16px;
	font-size: 16px;
	color: #334155;
}

.babar-tools .bt-calc-assumptions {
	margin: 0 0 16px;
	padding-left: 20px;
	font-size: 15px;
	color: #334155;
}

.babar-tools .bt-calc-assumptions li {
	margin-bottom: 4px;
}

.babar-tools .bt-calc-display-note {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid #BBF7D0;
	font-size: 15px;
	color: #14532D;
}

.babar-tools .bt-calc-privacy {
	margin: 0 0 20px;
	font-size: 14px;
	color: #64748B;
}

.babar-tools .bt-calc-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

/* What-if result line and milestone ladder. */
.babar-tools .bt-calc-whatif-result {
	margin: 20px 0 0;
	padding: 16px 20px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	background: #FFFFFF;
	font-size: 16px;
	color: #0F172A;
}

.babar-tools .bt-calc-ladder {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	overflow: hidden;
	background: #FFFFFF;
}

.babar-tools .bt-calc-ladder li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 20px;
	border-bottom: 1px solid #F1F5F9;
	font-size: 16px;
}

.babar-tools .bt-calc-ladder li:last-child {
	border-bottom: 0;
}

.babar-tools .bt-calc-ladder-target {
	font-weight: 700;
	color: #0C543E;
}

.babar-tools .bt-calc-ladder-value {
	color: #334155;
	text-align: right;
}

/* Spacing between the tool sections. */
.babar-tools .bt-calc-section {
	margin-top: 44px;
}

@media (max-width: 800px) {
	.babar-tools .bt-calc-stars {
		grid-template-columns: repeat(2, 1fr);
	}

	.babar-tools .bt-calc-result {
		padding: 20px;
	}

	.babar-tools .bt-calc-headline {
		font-size: 19px;
	}
}

/* --- EXIF Viewer --- */
/**
 * EXIF Viewer extra styles. All selectors are scoped under
 * .babar-tools. Brand tokens: white, dark green #0C543E, pale mint
 * #EBFFE2, black pill buttons, Inter. Reuses the shared classes in
 * babar-tools.css wherever possible.
 */

.babar-tools .bt-exif-privacy {
	font-size: 17px;
	font-weight: 600;
	color: #0F172A;
	margin: 0 0 20px;
	text-align: center;
}

.babar-tools .bt-exif-dropzone {
	border: 2px dashed #CBD5E1;
	border-radius: 20px;
	background: #F8FAFC;
	padding: 36px 24px;
	text-align: center;
	cursor: pointer;
}

.babar-tools .bt-exif-dropzone:hover,
.babar-tools .bt-exif-dropzone:focus-visible {
	border-color: #0C543E;
	background: #EBFFE2;
	outline: none;
}

.babar-tools .bt-exif-dropzone.bt-exif-dragging {
	border-color: #0C543E;
	background: #EBFFE2;
}

.babar-tools .bt-exif-drop-hint {
	margin: 16px 0 0;
	font-size: 15px;
	color: #475569;
}

.babar-tools .bt-exif-formats {
	margin: 8px 0 0;
	font-size: 14px;
	color: #64748B;
}

.babar-tools .bt-exif-sample-row {
	margin-top: 16px;
	text-align: center;
}

/* Results: photo overview. */

.babar-tools .bt-exif-overview {
	margin-top: 32px;
	border-top: 1px solid #E2E8F0;
	padding-top: 32px;
}

.babar-tools .bt-exif-preview-wrap {
	text-align: center;
	margin-bottom: 24px;
}

.babar-tools .bt-exif-preview {
	max-width: 100%;
	max-height: 320px;
	width: auto;
	height: auto;
	border-radius: 16px;
	border: 1px solid #E5E7EB;
}

.babar-tools .bt-exif-no-preview {
	margin: 0;
	padding: 24px;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	background: #F8FAFC;
	color: #475569;
	font-size: 15px;
}

.babar-tools .bt-exif-facts {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 10px 16px;
	margin: 0;
}

.babar-tools .bt-exif-facts dt {
	font-weight: 600;
	font-size: 15px;
	color: #0F172A;
}

.babar-tools .bt-exif-facts dd {
	margin: 0;
	font-size: 15px;
	color: #334155;
	word-break: break-word;
}

.babar-tools .bt-exif-facts .bt-exif-subhead {
	grid-column: 1 / -1;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0C543E;
}

.babar-tools .bt-exif-facts .bt-exif-subhead:first-child {
	margin-top: 0;
}

.babar-tools .bt-exif-copy {
	padding: 4px 12px;
	font-size: 13px;
	margin-left: 8px;
}

/* Result sections. */

.babar-tools .bt-exif-section {
	margin-top: 32px;
	border-top: 1px solid #E2E8F0;
	padding-top: 24px;
}

.babar-tools .bt-exif-section h3 {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.babar-tools .bt-exif-findings {
	margin: 0;
	padding-left: 20px;
	font-size: 16px;
}

.babar-tools .bt-exif-findings li {
	margin-bottom: 8px;
}

.babar-tools .bt-exif-hidden-note,
.babar-tools .bt-exif-gps-note {
	font-size: 14px;
	color: #64748B;
	margin: 16px 0 0;
}

.babar-tools .bt-exif-noexif,
.babar-tools .bt-exif-partial {
	margin: 24px 0 0;
	padding: 16px;
	border-radius: 12px;
	background: #FFFBEB;
	border-left: 4px solid #D97706;
	font-size: 15px;
	color: #451A03;
}

/* GPS warning and reveal. */

.babar-tools .bt-exif-gps-warning {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-left: 4px solid #B91C1C;
	border-radius: 0 12px 12px 0;
	padding: 16px;
	margin-bottom: 16px;
}

.babar-tools .bt-exif-gps-warning p {
	margin: 0;
	font-size: 15px;
	color: #450A0A;
}

.babar-tools .bt-exif-reveal {
	margin-bottom: 16px;
}

.babar-tools .bt-exif-map-note {
	font-size: 14px;
	color: #64748B;
	margin: 16px 0 12px;
}

.babar-tools .bt-exif-map-link {
	text-decoration: none;
}

/* Export and cleaning actions. */

.babar-tools .bt-exif-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.babar-tools .bt-exif-clean-intro {
	font-size: 15px;
	color: #475569;
	margin: 0 0 16px;
}

.babar-tools .bt-exif-clean-note {
	margin: 16px 0 0;
	font-size: 15px;
	color: #0C543E;
	font-weight: 600;
}

.babar-tools .bt-exif-compare {
	margin-top: 24px;
}

.babar-tools .bt-exif-compare h4 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
}

.babar-tools .bt-exif-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin-bottom: 16px;
}

.babar-tools .bt-exif-table th,
.babar-tools .bt-exif-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #E2E8F0;
	vertical-align: top;
	word-break: break-word;
}

.babar-tools .bt-exif-table thead th {
	background: #F8FAFC;
	font-weight: 700;
}

.babar-tools .bt-exif-verify {
	font-size: 15px;
	color: #0C543E;
	font-weight: 600;
	margin: 0 0 16px;
}

/* All metadata: searchable, grouped, collapsed by default. */

.babar-tools .bt-exif-all {
	margin-top: 32px;
	border-top: 1px solid #E2E8F0;
	padding-top: 24px;
}

.babar-tools .bt-exif-all summary {
	font-size: 20px;
	font-weight: 800;
	cursor: pointer;
	letter-spacing: -0.01em;
}

.babar-tools .bt-exif-all-note {
	font-size: 14px;
	color: #64748B;
	margin: 12px 0 16px;
}

.babar-tools .bt-exif-all-tools {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.babar-tools .bt-exif-all-tools input[type="search"] {
	flex: 1;
	min-width: 220px;
	padding: 12px 16px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font: inherit;
	font-size: 16px;
	background: #FFFFFF;
	color: #0F172A;
}

.babar-tools .bt-exif-all-tools input[type="search"]:focus {
	outline: none;
	border-color: #0C543E;
	box-shadow: 0 0 0 3px rgba(12, 84, 62, 0.15);
}

.babar-tools .bt-exif-raw-toggle {
	font-size: 15px;
	font-weight: 600;
	color: #0F172A;
	white-space: nowrap;
}

.babar-tools .bt-exif-group {
	margin-bottom: 24px;
}

.babar-tools .bt-exif-group h4 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	color: #0C543E;
}

.babar-tools .bt-exif-hidden-group {
	margin-top: 12px;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 12px 16px;
	background: #F8FAFC;
}

.babar-tools .bt-exif-hidden-group summary {
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	color: #475569;
}

.babar-tools .bt-exif-hidden-group .bt-exif-facts {
	margin-top: 12px;
}

.babar-tools .bt-exif-no-match {
	font-size: 15px;
	color: #64748B;
}

.babar-tools .bt-exif-clear-row {
	margin-top: 32px;
	text-align: center;
}

@media (max-width: 800px) {
	.babar-tools .bt-exif-facts {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}

	.babar-tools .bt-exif-facts dd {
		margin-bottom: 10px;
	}

	.babar-tools .bt-exif-dropzone {
		padding: 28px 16px;
	}

	.babar-tools .bt-exif-table {
		font-size: 14px;
	}
}

/* --- Paste Image --- */
/**
 * Babar Tools: Paste Image extra styles (v1.1.0).
 *
 * Only this tool's extra CSS. All selectors are scoped under
 * .babar-tools. Brand tokens: white, dark green #0C543E, pale mint
 * #EBFFE2, black pill buttons, Inter. Reuses the shared classes in
 * babar-tools.css wherever possible.
 */

.babar-tools .bt-paste-privacy {
	margin-bottom: 24px;
}

.babar-tools .bt-paste-drop {
	border: 2px dashed #CBD5E1;
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	background: #F8FAFC;
}

.babar-tools .bt-paste-drop.bt-paste-dragging {
	border-color: #0C543E;
	background: #EBFFE2;
}

.babar-tools .bt-paste-drop-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	color: #0F172A;
}

.babar-tools .bt-paste-drop-sub {
	margin: 0 0 20px;
	font-size: 15px;
	color: #64748B;
}

.babar-tools .bt-paste-drop-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.babar-tools .bt-paste-drop-actions .babar-tools-btn,
.babar-tools .bt-paste-drop-actions .babar-tools-copy {
	padding: 14px 28px;
	font-size: 16px;
	min-height: 48px;
}

.babar-tools .bt-paste-target {
	max-width: 420px;
	margin: 0 auto 16px;
	padding: 12px 16px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	background: #FFFFFF;
	color: #64748B;
	font-size: 15px;
	cursor: text;
}

.babar-tools .bt-paste-target:focus {
	outline: none;
	border-color: #0C543E;
	box-shadow: 0 0 0 3px rgba(12, 84, 62, 0.15);
	color: #0F172A;
}

.babar-tools .bt-paste-drop .babar-tools-help {
	margin: 0;
}

.babar-tools .bt-paste-status {
	margin-top: 16px;
}

.babar-tools .bt-paste-preview-wrap {
	position: relative;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	overflow: hidden;
	background: #F8FAFC;
	text-align: center;
}

.babar-tools .bt-paste-preview-wrap img {
	display: block;
	max-width: 100%;
	max-height: 480px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.babar-tools .bt-paste-preview-wrap.bt-paste-cropping {
	cursor: crosshair;
	touch-action: none;
}

.babar-tools .bt-paste-preview-wrap.bt-paste-cropping img {
	user-select: none;
	-webkit-user-select: none;
}

.babar-tools .bt-paste-crop-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.babar-tools .bt-paste-crop-rect {
	position: absolute;
	display: none;
	border: 2px solid #0C543E;
	background: rgba(12, 84, 62, 0.15);
	box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.35);
}

.babar-tools .bt-paste-preview-actions {
	display: flex;
	gap: 8px 20px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.babar-tools .bt-paste-preview-actions .babar-tools-example {
	font-size: 15px;
	min-height: 44px;
}

.babar-tools .bt-paste-format {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px 24px;
	flex-wrap: wrap;
}

.babar-tools .bt-paste-format legend {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	padding: 0;
}

.babar-tools .bt-paste-format label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	padding: 10px 16px;
	border: 1.5px solid #CBD5E1;
	border-radius: 999px;
	cursor: pointer;
	min-height: 44px;
}

.babar-tools .bt-paste-format label:has(input:checked) {
	border-color: #0C543E;
	background: #EBFFE2;
	color: #0C543E;
}

.babar-tools .bt-paste-format input[type="radio"] {
	accent-color: #0C543E;
	width: 18px;
	height: 18px;
	margin: 0;
}

.babar-tools input[type="range"] {
	width: 100%;
	accent-color: #0C543E;
	min-height: 44px;
}

.babar-tools .bt-paste-presets {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.babar-tools .bt-paste-presets .babar-tools-copy {
	min-height: 44px;
}

.babar-tools .bt-paste-lock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools .bt-paste-lock input[type="checkbox"] {
	accent-color: #0C543E;
	width: 18px;
	height: 18px;
	margin: 0;
}

.babar-tools .bt-paste-compare {
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	padding: 20px 24px;
	background: #F8FAFC;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.babar-tools .bt-paste-compare p {
	margin: 0;
	font-size: 15px;
	color: #64748B;
}

.babar-tools .bt-paste-compare span {
	display: block;
	margin-top: 4px;
	font-size: 17px;
	font-weight: 700;
	color: #0F172A;
}

.babar-tools .bt-paste-actions-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.babar-tools .bt-paste-actions-row .babar-tools-copy {
	padding: 14px 28px;
	font-size: 16px;
	min-height: 48px;
}

.babar-tools #bt-paste-done {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
}

.babar-tools #bt-paste-done:empty {
	display: none;
}

@media (max-width: 800px) {
	.babar-tools .bt-paste-drop {
		padding: 24px 16px;
	}

	.babar-tools .bt-paste-drop-actions .babar-tools-btn,
	.babar-tools .bt-paste-drop-actions .babar-tools-copy {
		width: 100%;
	}

	.babar-tools .bt-paste-compare {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.babar-tools .bt-paste-actions-row .babar-tools-copy {
		width: 100%;
	}
}

/* --- Geotag --- */
/* Geotag Photos (client-side tool, v1.1.3). Scoped under .babar-tools.
 * v1.1.3 dashboard: top row is Step 1 (photos) beside Step 2 (map),
 * both panels 360px; the address search sits below the map, fused to
 * it as one widget; the selected-location mint strip and Step 3 sit
 * full width below. On mobile the search sits above the map and the
 * Write button sticks to the bottom once a location is set. */

/* One short privacy line at the top of the tool. Small gray text uses
 * #475569 so it passes 4.5:1 on white. */

.babar-tools .bt-geo-privacy-line {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: #475569;
}

.babar-tools .bt-geo-disclosure {
	margin: 0 0 8px;
	font-size: 14px;
	color: #475569;
}

.babar-tools .bt-geo-disclosure:last-of-type {
	margin-bottom: 0;
}

.babar-tools .bt-geo-refresh-note {
	margin: 12px 0 0;
	font-size: 14px;
	color: #475569;
}

/* Step 1: dropzone and photo list. */

.babar-tools .bt-geo-dropzone {
	border: 2px dashed #CBD5E1;
	border-radius: 20px;
	padding: 28px 24px;
	text-align: center;
	background: #F8FAFC;
	cursor: pointer;
}

.babar-tools .bt-geo-dropzone.is-dragover {
	border-color: #0C543E;
	background: #EBFFE2;
}

.babar-tools .bt-geo-dropzone p {
	margin: 0 0 8px;
}

.babar-tools .bt-geo-dropzone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

/* Compact dropzone label: hidden until photos exist, then it replaces
 * the two main dropzone lines and the dropzone shrinks to a bar. */

.babar-tools .bt-geo-dropzone-compact {
	display: none;
	margin: 0;
}

.babar-tools #bt-geo-photo-panel.has-photos .bt-geo-dropzone {
	padding: 12px 16px;
}

.babar-tools #bt-geo-photo-panel.has-photos .bt-geo-dropzone p:not(.bt-geo-dropzone-compact) {
	display: none;
}

.babar-tools #bt-geo-photo-panel.has-photos .bt-geo-dropzone-compact {
	display: block;
}

/* Plain overflow message: remove one photo to add another. No swap UI. */

.babar-tools .bt-geo-limit {
	margin-top: 16px;
	border: 1px solid #F59E0B;
	background: #FFFBEB;
	border-radius: 16px;
	padding: 16px;
}

.babar-tools .bt-geo-limit p {
	margin: 0;
}

.babar-tools .bt-geo-limit p + p {
	margin-top: 8px;
}

/* "N of 6 photos" count line: hidden while the panel is empty, since
 * the dropzone already says "Add photos (up to 6)". */

.babar-tools #bt-geo-photo-panel .bt-geo-count-line {
	display: none;
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
}

.babar-tools #bt-geo-photo-panel.has-photos .bt-geo-count-line {
	display: block;
}

.babar-tools .bt-geo-photo-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.babar-tools .bt-geo-photo {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 12px;
	background: #FFFFFF;
}

.babar-tools .bt-geo-thumb {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 12px;
	flex: none;
	background: #F1F5F9;
}

.babar-tools .bt-geo-thumb-none {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12px;
	color: #475569;
	padding: 8px;
	box-sizing: border-box;
}

.babar-tools .bt-geo-photo-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.babar-tools .bt-geo-photo-meta strong {
	word-break: break-all;
}

.babar-tools .bt-geo-photo-meta span {
	font-size: 14px;
	color: #475569;
}

.babar-tools .bt-geo-photo-meta .bt-geo-status {
	font-weight: 600;
	color: #0C543E;
}

.babar-tools .bt-geo-remove {
	flex: none;
	min-height: 44px;
	padding: 8px 16px;
	background: none;
	border: 1.5px solid #CBD5E1;
	border-radius: 999px;
	color: #111827;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools .bt-geo-remove:hover {
	border-color: #B91C1C;
	color: #B91C1C;
}

/* Step 2: map, place search, and live status lines. */

.babar-tools .bt-geo-map-wrap {
	position: relative;
	margin-top: 16px;
}

.babar-tools .bt-geo-map {
	width: 100%;
	height: 360px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	overflow: hidden;
	background: #F1F5F9;
	z-index: 0;
}

/* Hint pill centred near the top of the map. It never blocks map clicks. */

.babar-tools .bt-geo-map-hint {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 400;
	max-width: calc(100% - 24px);
	background: #FFFFFF;
	color: #0F172A;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
	pointer-events: none;
	transition: opacity 300ms ease;
}

/* The hint fades once the first pin is dropped (JS adds is-hidden). */

.babar-tools .bt-geo-map-hint.is-hidden {
	opacity: 0;
}

/* Leaflet zoom controls match the 44px touch target used elsewhere. */

.babar-tools .bt-geo-map .leaflet-control-zoom a {
	width: 44px;
	height: 44px;
	line-height: 44px;
}

.babar-tools .bt-geo-search-block {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* "Or search for a location" label above the search row. */

.babar-tools .bt-geo-search-label {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
}

.babar-tools .bt-geo-search-block .babar-tools-btn {
	align-self: flex-start;
}

.babar-tools .bt-geo-search-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* Opt-in "Use my current location" button. The busy spinner is drawn
 * with a rotating border circle, so no extra markup is needed. */

.babar-tools .bt-geo-geolocate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	background: #FFFFFF;
	border: 1.5px solid #CBD5E1;
	border-radius: 999px;
	color: #0C543E;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools .bt-geo-geolocate:hover {
	border-color: #0C543E;
}

.babar-tools .bt-geo-geolocate.is-busy {
	opacity: 0.7;
	cursor: wait;
}

.babar-tools .bt-geo-geolocate.is-busy::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	border: 2px solid #CBD5E1;
	border-top-color: #0C543E;
	border-radius: 50%;
	animation: bt-geo-spin 0.8s linear infinite;
}

@keyframes bt-geo-spin {
	to {
		transform: rotate(360deg);
	}
}

.babar-tools .bt-geo-search-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.babar-tools .bt-geo-search-result {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 12px;
	background: #FFFFFF;
}

.babar-tools .bt-geo-search-result span {
	flex: 1;
	font-size: 15px;
}

.babar-tools .bt-geo-search-result .babar-tools-btn {
	flex: none;
	white-space: nowrap;
	min-height: 44px;
}

/* Selected-location strip in the status block below the search. Neutral
 * until a location is set, pale mint once it is (JS adds has-location). */

.babar-tools .bt-geo-chosen {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #0C543E;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 12px 16px;
}

.babar-tools .bt-geo-chosen.has-location {
	background: #EBFFE2;
}

/* Collapsed "Enter coordinates instead" disclosure. The summary is a
 * text link style control with a 44px hit area. Fields inside keep the
 * existing .babar-tools-field look. */

.babar-tools .bt-geo-coords-details {
	margin-top: 16px;
	border-top: 1px solid #E2E8F0;
	padding-top: 8px;
}

.babar-tools .bt-geo-coords-details summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
	cursor: pointer;
}

.babar-tools .bt-geo-coords-details summary:focus-visible {
	outline: 2px solid #0C543E;
	outline-offset: 2px;
	border-radius: 8px;
}

.babar-tools .bt-geo-coords-details .babar-tools-field {
	margin-top: 12px;
}

/* Small semibold note under Step 2: one location is used for all photos. */

.babar-tools .bt-geo-batch-note {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

/* Per-photo strip, shown only when 2+ photos exist. The mint bar makes
 * the photo being edited unmistakable. */

.babar-tools .bt-geo-per-photo-wrap {
	margin-top: 16px;
}

.babar-tools .bt-geo-photo-strip {
	margin: 12px 0 0;
	background: #EBFFE2;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
}

/* Opt-in "Show saved location on map" button row. */

.babar-tools .bt-geo-show-saved-wrap {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.babar-tools .bt-geo-show-saved-wrap .babar-tools-btn {
	min-height: 44px;
}

/* Map pin: a styled div, so no marker image files are needed. */

.babar-tools .bt-geo-pin-wrap {
	background: none;
	border: 0;
}

.babar-tools .bt-geo-pin {
	width: 44px;
	height: 44px;
	border-radius: 50% 50% 50% 0;
	background: #0C543E;
	border: 3px solid #FFFFFF;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
	transform: rotate(-45deg);
	transform-origin: center;
	cursor: grab;
	position: relative;
}

.babar-tools .bt-geo-pin::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: #EBFFE2;
}

/* Short pin-drop settle, runs once when the class is added. */

.babar-tools .bt-geo-pin.bt-geo-pin-drop {
	animation: bt-geo-pin-drop 300ms ease-out 1;
}

@keyframes bt-geo-pin-drop {
	0% {
		transform: rotate(-45deg) scale(1.25);
	}
	60% {
		transform: rotate(-45deg) scale(0.96);
	}
	100% {
		transform: rotate(-45deg) scale(1);
	}
}

/* Saved-location preview marker: hollow white pin with a mint ring, so
 * it is clearly different from the solid dark green main pin. */

.babar-tools .bt-geo-pin.bt-geo-pin-saved {
	background: #FFFFFF;
	border-color: #0C543E;
	box-shadow: 0 0 0 4px #EBFFE2, 0 4px 12px rgba(15, 23, 42, 0.35);
}

.babar-tools .bt-geo-pin.bt-geo-pin-saved::after {
	background: #0C543E;
}

/* Small coordinate tooltip shown on the pin while dragging. */

.babar-tools .bt-geo-pin-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #0F172A;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	padding: 6px 10px;
	border-radius: 999px;
	pointer-events: none;
}

/* Step 3: preview, write, and results. */

.babar-tools .bt-geo-preview-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.babar-tools .bt-geo-preview-row {
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 16px;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.babar-tools .bt-geo-preview-row strong {
	word-break: break-all;
}

.babar-tools .bt-geo-preview-row span {
	font-size: 15px;
	color: #334155;
}

.babar-tools .bt-geo-preview-row .bt-geo-action select {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font: inherit;
	font-size: 15px;
	background: #FFFFFF;
	min-height: 44px;
}

/* Write button row: the plain-language reason sits next to the button. */

.babar-tools .bt-geo-write-row {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

.babar-tools .bt-geo-write-row .babar-tools-btn {
	min-height: 44px;
}

.babar-tools .bt-geo-write-reason {
	font-size: 15px;
	color: #475569;
}

/* Per-file progress while writing, e.g. "Creating copy 2 of 4". */

.babar-tools .bt-geo-progress {
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
}

.babar-tools .bt-geo-privacy {
	margin: 20px 0 0;
	border-left: 4px solid #D97706;
	background: #FFFBEB;
	padding: 16px;
	border-radius: 0 12px 12px 0;
	font-size: 15px;
}

.babar-tools .bt-geo-replace-warning {
	margin-top: 16px;
	border: 1px solid #F59E0B;
	background: #FFFBEB;
	border-radius: 16px;
	padding: 16px;
}

.babar-tools .bt-geo-replace-warning p {
	margin: 0 0 10px;
}

.babar-tools .bt-geo-replace-warning label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	cursor: pointer;
}

.babar-tools .bt-geo-replace-warning input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex: none;
	accent-color: #0C543E;
}

/* Stale-downloads notice, same amber treatment as the replace warning. */

.babar-tools .bt-geo-stale {
	margin-top: 16px;
	border: 1px solid #F59E0B;
	background: #FFFBEB;
	border-radius: 16px;
	padding: 16px;
}

.babar-tools .bt-geo-stale p {
	margin: 0;
}

.babar-tools .bt-geo-remove-mode {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.babar-tools .bt-geo-remove-mode input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex: none;
	accent-color: #0C543E;
}

.babar-tools .bt-geo-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* When the pin moved after copies were created, the old results dim. */

.babar-tools .bt-geo-results.is-stale .bt-geo-result-row {
	opacity: 0.6;
}

.babar-tools .bt-geo-result-row {
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	padding: 16px;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.babar-tools .bt-geo-result-row strong {
	word-break: break-all;
}

.babar-tools .bt-geo-result-row span {
	font-size: 15px;
}

.babar-tools .bt-geo-result-row .bt-geo-verified {
	font-weight: 600;
	color: #0C543E;
}

.babar-tools .bt-geo-result-row .babar-tools-btn {
	align-self: flex-start;
	min-height: 44px;
}

.babar-tools .bt-geo-results-actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.babar-tools .bt-geo-results-actions .babar-tools-btn {
	min-height: 44px;
}

/* "How your photos stay private" disclosure below the tool. */

.babar-tools .bt-geo-privacy-details {
	margin-top: 24px;
}

.babar-tools .bt-geo-privacy-details summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	color: #0C543E;
	cursor: pointer;
}

.babar-tools .bt-geo-privacy-details summary:focus-visible {
	outline: 2px solid #0C543E;
	outline-offset: 2px;
	border-radius: 8px;
}

.babar-tools .bt-geo-privacy-details p {
	margin: 8px 0 0;
	font-size: 15px;
	color: #475569;
}

/* Toast: fixed near the bottom centre, fades in when .is-visible is set. */

.babar-tools .bt-geo-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	z-index: 1000;
	max-width: calc(100vw - 32px);
	background: #0C543E;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	padding: 12px 20px;
	border-radius: 999px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease;
}

.babar-tools .bt-geo-toast.is-visible {
	opacity: 1;
	pointer-events: none;
	transform: translateX(-50%) translateY(0);
}

/* Green band step states: completed steps light up in full white. The
 * current step keeps the existing pale look. Band layout is unchanged. */

.babar-tools .babar-tools-band-steps span.is-done {
	color: #FFFFFF;
}

.babar-tools .babar-tools-band-steps span[aria-current="step"] {
	color: #A7F3D0;
}

/* Mobile: stack the photo list and the map, keep targets 44px or larger. */

@media (max-width: 800px) {
	.babar-tools .bt-geo-photo {
		flex-wrap: wrap;
	}

	.babar-tools .bt-geo-photo-meta {
		flex-basis: calc(100% - 104px);
	}

	.babar-tools .bt-geo-map {
		height: 280px;
	}

	.babar-tools .bt-geo-map-hint {
		font-size: 13px;
	}

	.babar-tools .bt-geo-search-result {
		flex-direction: column;
		align-items: flex-start;
	}

	.babar-tools .bt-geo-search-result .babar-tools-btn {
		width: 100%;
		text-align: center;
		min-height: 44px;
	}

	.babar-tools .bt-geo-geolocate {
		width: 100%;
		justify-content: center;
	}

	.babar-tools .bt-geo-search-block .babar-tools-btn {
		width: 100%;
		text-align: center;
		min-height: 44px;
	}

	.babar-tools .bt-geo-write-row .babar-tools-btn {
		width: 100%;
		text-align: center;
	}

	.babar-tools .bt-geo-results-actions .babar-tools-btn {
		width: 100%;
		text-align: center;
	}
}

/* v1.1.3 dashboard: on wide screens the Geotag tool becomes a grid.
 * Top row: Step 1 (photos) beside Step 2 (map), both panels 360px.
 * The address search sits below the map, fused to it as one widget,
 * then the selected-location strip and Step 3 run full width. Below
 * 1100px there are no grid rules here, so the sections keep the
 * stacked block flow in DOM order: Step 1, search, map, status,
 * Step 3. */

@media (min-width: 1100px) {
	.babar-tools .bt-geo-dashboard {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "photos map" "search search" "status status" "download download";
		gap: 24px;
		align-items: start;
	}

	.babar-tools .bt-geo-step-1 {
		grid-area: photos;
	}

	.babar-tools .bt-geo-step-2 {
		grid-area: map;
	}

	.babar-tools .bt-geo-location-search {
		grid-area: search;
	}

	.babar-tools .bt-geo-location-status {
		grid-area: status;
	}

	.babar-tools .bt-geo-step-3 {
		grid-area: download;
	}

	/* Sections inside the grid take their spacing from the grid gap
	 * only, and grid items must not overflow their column. */

	.babar-tools .bt-geo-dashboard .babar-tools-section {
		margin-bottom: 0;
		min-width: 0;
	}

	/* Photo panel: fixed 360px column. The empty dropzone fills the
	 * panel; once photos exist it shrinks to a compact bar and the
	 * list scrolls inside the panel with a visible scrollbar. */

	.babar-tools #bt-geo-photo-panel {
		display: flex;
		flex-direction: column;
		gap: 12px;
		height: 360px;
	}

	.babar-tools #bt-geo-photo-panel:not(.has-photos) .bt-geo-dropzone {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.babar-tools #bt-geo-photo-panel.has-photos .bt-geo-dropzone {
		flex: none;
	}

	.babar-tools #bt-geo-photo-panel .bt-geo-per-photo-wrap,
	.babar-tools #bt-geo-photo-panel .bt-geo-count-line,
	.babar-tools #bt-geo-photo-panel .bt-geo-limit,
	.babar-tools #bt-geo-photo-panel .bt-geo-photo-list {
		margin: 0;
	}

	.babar-tools #bt-geo-photo-panel .bt-geo-photo-list {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
	}

	/* Map panel: the map fills its 360px column. Square bottom
	 * corners and no bottom border, so the search bar below reads
	 * as the shared bottom edge of one widget. */

	.babar-tools .bt-geo-map {
		border-radius: 16px 16px 0 0;
		border-bottom: none;
	}

	/* Search fused to the map: pulled tight under the top row so
	 * the effective gap is 8px, not 24px. */

	.babar-tools .bt-geo-location-search {
		margin-top: -16px;
		border: 1px solid #E2E8F0;
		border-radius: 0 0 16px 16px;
		background: #FFFFFF;
		padding: 16px;
	}

	.babar-tools .bt-geo-location-search .bt-geo-search-block {
		margin-top: 0;
	}

	/* Search row: field stretches, buttons keep their size. */

	.babar-tools .bt-geo-search-row {
		display: flex;
		gap: 12px;
	}

	.babar-tools .bt-geo-search-field {
		flex: 1;
		min-width: 0;
	}

	.babar-tools .bt-geo-search-field input {
		width: 100%;
	}

	.babar-tools .bt-geo-search-row .babar-tools-btn,
	.babar-tools .bt-geo-search-row .bt-geo-geolocate {
		flex: none;
		min-height: 44px;
	}

	/* Step 3 preview: rows sit side by side on desktop. */

	.babar-tools .bt-geo-step-3 .bt-geo-preview-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 12px;
	}
}

/* Mobile: stack in DOM order with the search above the map, no fixed
 * panel heights, no internal photo list scrolling, and a sticky Write
 * button once a location is set. */

@media (max-width: 1099px) {
	.babar-tools .bt-geo-map {
		height: 280px;
	}

	.babar-tools #bt-geo-photo-panel {
		height: auto;
	}

	.babar-tools #bt-geo-photo-panel .bt-geo-photo-list {
		overflow: visible;
	}

	.babar-tools .bt-geo-location-search {
		margin-top: 0;
	}

	.babar-tools .babar-tools-body.bt-geo-can-write .babar-tools-generate {
		position: sticky;
		bottom: 0;
		z-index: 50;
		background: #FFFFFF;
		padding: 12px 0;
		border-top: 1px solid #E2E8F0;
	}
}
