/* Top Gun Tanning Events — front end. Everything is scoped under .tgt-wrap so it never touches the theme. */

.tgt-wrap,
.tgt-wrap *,
.tgt-wrap *::before,
.tgt-wrap *::after { box-sizing: border-box; }

.tgt-wrap {
	--tgt-ink: #1f1a16;
	--tgt-accent: #8a4b16;
	--tgt-bg: #f6f1ea;
	--tgt-max: 1280px;
	--tgt-paper: #fffdf9;
	--tgt-line: #e3d8ca;
	--tgt-soft: #f6efe6;
	--tgt-muted: #5c4f44;
	container: tgt / inline-size;
	display: block;
	width: 100%;
	max-width: var(--tgt-max);
	margin: 0 auto;
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	color: var(--tgt-ink);
}
.tgt-wrap [hidden] { display: none !important; }

.tgt-wrap--full { background: var(--tgt-bg); }
.tgt-wrap .tgt-shell { padding: 40px 64px 56px; }
.tgt-wrap--full.tgt-bleed { box-shadow: 0 0 0 100vmax var(--tgt-bg); clip-path: inset(0 -100vmax); }
.tgt-wrap--card { max-width: 560px; margin-left: 0; margin-right: auto; }
.tgt-wrap--list { background: transparent; }

/* Reset only what themes commonly bleed into our elements */
.tgt-wrap .tgt-title,
.tgt-wrap .tgt-card-title,
.tgt-wrap .tgt-ltitle,
.tgt-wrap .tgt-total-v {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tgt-ink);
	margin: 0;
	padding: 0;
}
.tgt-wrap p { margin: 0; }
.tgt-wrap img { max-width: 100%; height: auto; border: 0; box-shadow: none; }

/* Stepper */
.tgt-wrap .tgt-steps {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	font-size: 14px;
	color: var(--tgt-muted);
}
.tgt-wrap .tgt-step { display: inline-flex; align-items: center; gap: 8px; }
.tgt-wrap .tgt-dot {
	width: 26px; height: 26px; border-radius: 13px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #a8937e; background: transparent; color: var(--tgt-muted);
	font-size: 13px; font-weight: 700; line-height: 1; flex: 0 0 auto;
}
.tgt-wrap .tgt-step.is-active .tgt-dot,
.tgt-wrap .tgt-step.is-done .tgt-dot { background: var(--tgt-ink); border-color: var(--tgt-ink); color: var(--tgt-paper); }
.tgt-wrap .tgt-step.is-active .tgt-step-label { font-weight: 700; color: var(--tgt-ink); }
.tgt-wrap .tgt-bar { width: 40px; height: 1px; background: #cbbba8; display: inline-block; }

/* Layout */
.tgt-wrap .tgt-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: 48px;
	align-items: start;
}
.tgt-wrap .tgt-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tgt-wrap .tgt-side { min-width: 0; }

.tgt-wrap .tgt-photo {
	height: 340px; border-radius: 16px; overflow: hidden; background: #e6d7c4;
	display: flex; align-items: center; justify-content: center; color: #a8937e;
}
.tgt-wrap .tgt-photo img,
.tgt-wrap .tgt-photo .tgt-photo-img {
	width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0;
}
.tgt-wrap .tgt-info { display: flex; flex-direction: column; gap: 10px; }
.tgt-wrap .tgt-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tgt-accent);
}
.tgt-wrap .tgt-title { font-size: 48px; line-height: 1.05; }
.tgt-wrap .tgt-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: #4a3f36; }
.tgt-wrap .tgt-meta-i { display: inline-flex; align-items: center; gap: 8px; }
.tgt-wrap .tgt-meta-i svg { flex: 0 0 auto; }
.tgt-wrap .tgt-desc { font-size: 17px; line-height: 1.6; color: #3d332b; max-width: 620px; }
.tgt-wrap .tgt-desc p { margin: 0 0 1em; }
.tgt-wrap .tgt-desc p:last-child { margin-bottom: 0; }
.tgt-wrap .tgt-desc a { color: var(--tgt-accent); }
.tgt-wrap .tgt-desc ul, .tgt-wrap .tgt-desc ol { margin: 0 0 1em 1.3em; padding: 0; }
.tgt-wrap .tgt-desc h2, .tgt-wrap .tgt-desc h3 { font-family: 'Fraunces', Georgia, serif; margin: 1.2em 0 .4em; line-height: 1.2; color: var(--tgt-ink); }

/* Booking card */
.tgt-wrap .tgt-card {
	background: var(--tgt-paper);
	border: 1px solid var(--tgt-line);
	border-radius: 18px;
	padding: 28px;
	display: flex; flex-direction: column; gap: 22px;
	box-shadow: 0 12px 32px rgba(60, 40, 20, .08);
	min-width: 0;
}
.tgt-wrap .tgt-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tgt-wrap .tgt-card-title { font-size: 24px; line-height: 1.2; }
.tgt-wrap .tgt-from { font-size: 14px; color: var(--tgt-muted); }
.tgt-wrap .tgt-form { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; border: 0; background: none; }
.tgt-wrap .tgt-section { display: flex; flex-direction: column; gap: 10px; }
.tgt-wrap .tgt-label { font-size: 14px; font-weight: 700; color: var(--tgt-ink); line-height: 1.3; margin: 0; padding: 0; display: block; }
.tgt-wrap .tgt-options { display: flex; flex-direction: column; gap: 10px; }
.tgt-wrap .tgt-checks { display: flex; flex-direction: column; }

/* Radio option (real input kept for accessibility, visually hidden) */
.tgt-wrap .tgt-opt { display: block; position: relative; margin: 0; padding: 0; cursor: pointer; }
.tgt-wrap .tgt-in,
.tgt-wrap .tgt-cb { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tgt-wrap .tgt-opt-box {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 12px 16px; border-radius: 12px;
	border: 1px solid #d6c7b5; background: var(--tgt-paper);
	font-size: 15px; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.tgt-wrap .tgt-opt:hover .tgt-opt-box { border-color: #b9a58f; }
.tgt-wrap .tgt-in:checked + .tgt-opt-box { border-color: var(--tgt-ink); box-shadow: 0 0 0 1px var(--tgt-ink); background: var(--tgt-soft); }
.tgt-wrap .tgt-in:focus-visible + .tgt-opt-box,
.tgt-wrap .tgt-cb:focus-visible + span { outline: 2px solid var(--tgt-accent); outline-offset: 2px; }
.tgt-wrap .tgt-opt-main { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.tgt-wrap .tgt-radio {
	width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
	border: 1.5px solid #8a7866; background: var(--tgt-paper);
}
.tgt-wrap .tgt-in:checked + .tgt-opt-box .tgt-radio { border: 5px solid var(--tgt-ink); }
.tgt-wrap .tgt-opt-label { overflow-wrap: anywhere; }
.tgt-wrap .tgt-in:checked + .tgt-opt-box .tgt-opt-label { font-weight: 700; }
.tgt-wrap .tgt-opt-note { font-size: 14px; color: var(--tgt-muted); white-space: nowrap; }
.tgt-wrap .tgt-in:checked + .tgt-opt-box .tgt-opt-note { color: #4a3f36; }

/* Checkbox rows */
.tgt-wrap .tgt-check {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 44px; padding: 0 4px; border-bottom: 1px solid #efe6da; font-size: 15px; margin: 0; cursor: pointer;
}
.tgt-wrap .tgt-check:last-child { border-bottom: 0; }
.tgt-wrap .tgt-check-main { display: inline-flex; align-items: center; gap: 12px; position: relative; }
.tgt-wrap .tgt-check-main::before {
	content: ''; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #8a7866; background: var(--tgt-paper); flex: 0 0 auto;
}
.tgt-wrap .tgt-check-main .tgt-cb { left: 0; top: 50%; }
.tgt-wrap .tgt-check-main .tgt-cb:checked ~ span { font-weight: 500; }
.tgt-wrap .tgt-check.is-checked .tgt-check-main::before {
	background: var(--tgt-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf9' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
	border-color: var(--tgt-ink);
}

/* Two-column small fields */
.tgt-wrap .tgt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tgt-wrap .tgt-grid2 > .tgt-field:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tgt-wrap .tgt-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tgt-wrap .tgt-details { display: block; }

.tgt-wrap .tgt-stepper {
	display: flex; align-items: center; justify-content: space-between;
	height: 48px; border: 1px solid #d6c7b5; border-radius: 10px; padding: 0 4px; background: var(--tgt-paper);
}
.tgt-wrap .tgt-stepper .tgt-sbtn {
	width: 40px; height: 40px; min-height: 0; padding: 0; margin: 0; border: 0 !important; border-radius: 8px;
	background: transparent !important; color: var(--tgt-ink) !important; box-shadow: none !important;
	font: 400 22px/1 'DM Sans', system-ui, sans-serif; text-transform: none; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.tgt-wrap .tgt-stepper .tgt-sbtn:hover,
.tgt-wrap .tgt-stepper .tgt-sbtn:focus { background: var(--tgt-soft) !important; color: var(--tgt-ink) !important; }
.tgt-wrap .tgt-stepper .tgt-sbtn:disabled { opacity: .35; cursor: not-allowed; }
.tgt-wrap .tgt-stepper .tgt-sbtn:focus-visible { outline: 2px solid var(--tgt-accent); outline-offset: 1px; }
.tgt-wrap .tgt-qty { font-size: 17px; font-weight: 700; min-width: 2ch; text-align: center; }

.tgt-wrap .tgt-select,
.tgt-wrap .tgt-input {
	display: block; width: 100% !important; height: 48px !important; min-height: 0 !important; margin: 0 !important;
	padding: 0 12px !important; border: 1px solid #d6c7b5 !important; border-radius: 10px !important;
	background-color: var(--tgt-paper) !important; color: var(--tgt-ink) !important;
	font: 400 15px/1.2 'DM Sans', system-ui, sans-serif !important; box-shadow: none !important; outline: 0;
	text-transform: none !important; letter-spacing: normal !important;
}
.tgt-wrap .tgt-select { appearance: auto; -webkit-appearance: menulist; cursor: pointer; }
.tgt-wrap .tgt-select:focus,
.tgt-wrap .tgt-input:focus { border-color: var(--tgt-ink) !important; box-shadow: 0 0 0 1px var(--tgt-ink) !important; }

/* Summary */
.tgt-wrap .tgt-summary { background: var(--tgt-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tgt-wrap .tgt-lines { display: flex; flex-direction: column; gap: 8px; }
.tgt-wrap .tgt-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #4a3f36; }
.tgt-wrap .tgt-line span:last-child { white-space: nowrap; }
.tgt-wrap .tgt-rule { height: 1px; background: #dccdbb; margin: 4px 0; }
.tgt-wrap .tgt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tgt-wrap .tgt-total-l { font-size: 16px; font-weight: 700; }
.tgt-wrap .tgt-total-v { font-size: 30px; line-height: 1.1; }

/* Button */
.tgt-wrap .tgt-btn {
	display: block; width: 100%; height: 56px; min-height: 0; margin: 0; padding: 0 16px;
	border: 0 !important; border-radius: 12px !important;
	background: var(--tgt-ink) !important; color: var(--tgt-paper) !important;
	font: 700 17px/1 'DM Sans', system-ui, sans-serif !important; text-transform: none !important; letter-spacing: normal !important;
	text-align: center; text-decoration: none; cursor: pointer; box-shadow: none !important;
	transition: filter .15s, transform .05s;
}
.tgt-wrap .tgt-btn:hover,
.tgt-wrap .tgt-btn:focus { background: var(--tgt-ink) !important; color: var(--tgt-paper) !important; filter: brightness(1.18); }
.tgt-wrap .tgt-btn:active { transform: translateY(1px); }
.tgt-wrap .tgt-btn:focus-visible { outline: 2px solid var(--tgt-accent); outline-offset: 3px; }
.tgt-wrap .tgt-btn:disabled { opacity: .6; cursor: not-allowed; filter: none; }
.tgt-wrap .tgt-note { font-size: 13px; color: var(--tgt-muted); text-align: center; }

.tgt-wrap .tgt-error {
	background: #fbeceb; border: 1px solid #e6b8b3; color: #7a1f17; border-radius: 10px;
	padding: 12px 14px; font-size: 14px; line-height: 1.4;
}
.tgt-wrap .tgt-closed {
	background: var(--tgt-soft); border-radius: 12px; padding: 18px 16px; font-size: 15px; font-weight: 500; text-align: center; color: #4a3f36;
}
.tgt-wrap .tgt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Success */
.tgt-wrap .tgt-success { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tgt-wrap .tgt-success-ic {
	width: 48px; height: 48px; border-radius: 50%; background: var(--tgt-ink); color: var(--tgt-paper);
	display: inline-flex; align-items: center; justify-content: center;
}
.tgt-wrap .tgt-success-ic svg { width: 22px; height: 22px; }
.tgt-wrap .tgt-success-msg { font-size: 15px; color: #4a3f36; line-height: 1.5; }

/* Event list */
.tgt-wrap .tgt-list { display: grid; grid-template-columns: repeat(var(--tgt-cols, 3), minmax(0, 1fr)); gap: 24px; }
.tgt-wrap .tgt-lcard { background: var(--tgt-paper); border: 1px solid var(--tgt-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(60, 40, 20, .06); }
.tgt-wrap .tgt-lphoto { display: flex; align-items: center; justify-content: center; height: 200px; background: #e6d7c4; overflow: hidden; }
.tgt-wrap .tgt-lphoto img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.tgt-wrap .tgt-lbody { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tgt-wrap .tgt-ltitle { font-size: 24px; line-height: 1.15; }
.tgt-wrap .tgt-ltitle a { color: inherit; text-decoration: none; }
.tgt-wrap .tgt-ltitle a:hover { text-decoration: underline; }
.tgt-wrap .tgt-lfoot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tgt-wrap .tgt-lbtn {
	display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px;
	background: var(--tgt-ink) !important; color: var(--tgt-paper) !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.tgt-wrap .tgt-lbtn:hover { filter: brightness(1.18); }
.tgt-wrap .tgt-empty { font-size: 16px; color: var(--tgt-muted); padding: 24px 0; text-align: center; }

/* Responsive: based on the width of the area the theme gives us */
@container tgt (max-width: 1000px) {
	.tgt-wrap .tgt-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.tgt-wrap .tgt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container tgt (max-width: 720px) {
	.tgt-wrap .tgt-shell { padding: 28px 20px 40px; }
}
@container tgt (max-width: 600px) {
	.tgt-wrap .tgt-title { font-size: 36px; }
	.tgt-wrap .tgt-photo { height: 240px; }
	.tgt-wrap .tgt-card { padding: 20px; border-radius: 16px; }
	.tgt-wrap .tgt-list { grid-template-columns: minmax(0, 1fr); }
	.tgt-wrap .tgt-bar { display: none; }
	.tgt-wrap .tgt-steps { gap: 8px 14px; }
}
@container tgt (max-width: 420px) {
	.tgt-wrap .tgt-title { font-size: 30px; }
	.tgt-wrap .tgt-grid2 { grid-template-columns: 1fr; }
	.tgt-wrap .tgt-total-v { font-size: 26px; }
}

/* Fallback for very old browsers without container queries */
@supports not (container-type: inline-size) {
	@media (max-width: 1000px) {
		.tgt-wrap .tgt-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
		.tgt-wrap .tgt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@media (max-width: 720px) {
		.tgt-wrap .tgt-shell { padding: 28px 20px 40px; }
	}
	@media (max-width: 600px) {
		.tgt-wrap .tgt-title { font-size: 34px; }
		.tgt-wrap .tgt-photo { height: 240px; }
		.tgt-wrap .tgt-list { grid-template-columns: minmax(0, 1fr); }
		.tgt-wrap .tgt-card { padding: 20px; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgt-wrap * { transition: none !important; }
}
