/* Parkway Athletic Club – Job Listings
 * Change the colors below to match your brand. Fonts are inherited from your theme. */
.pac-jobs, .pac-job-details, .pac-apply {
	--pac-accent: #c8102e;        /* buttons & links */
	--pac-accent-hover: #9e0c24;
	--pac-text: inherit;
	--pac-muted: #5f6368;
	--pac-border: #e3e3e3;
	--pac-bg-soft: #fdf3ec;       /* light background panels */
	--pac-radius: 10px;
}

/* Buttons */
.pac-btn {
	display: inline-block;
	background: var(--pac-accent);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	padding: .65em 1.2em;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
	transition: background .15s ease;
}
.pac-btn:hover, .pac-btn:focus { background: var(--pac-accent-hover); }
.pac-btn--lg { font-size: 1.05em; padding: .8em 1.6em; }

/* Filters */
.pac-jobs__filters { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 20px; }
.pac-jobs__filters label { display: flex; flex-direction: column; font-size: .85em; font-weight: 600; color: var(--pac-muted); gap: 4px; }
.pac-jobs__filters select { min-width: 190px; padding: .5em .6em; border: 1px solid var(--pac-border); border-radius: 6px; font-size: 1rem; }
.pac-jobs__empty, .pac-jobs__none { padding: 24px; background: var(--pac-bg-soft); border-radius: var(--pac-radius); text-align: center; }

/* Job cards */
.pac-jobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pac-job-card {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin: 0; padding: 20px 24px;
	border: 1px solid var(--pac-border); border-radius: var(--pac-radius);
	background: #fff;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.pac-job-card:hover { border-color: var(--pac-accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.pac-job-card[hidden] { display: none; }
.pac-job-card__title { margin: 0 0 6px; font-size: 1.25em; }
.pac-job-card__title a { color: inherit; text-decoration: none; }
.pac-job-card__title a:hover { color: var(--pac-accent); }
.pac-job-card__summary { margin: 8px 0 0; color: var(--pac-muted); }

.pac-job-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pac-job-meta li {
	margin: 0; font-size: .82em; font-weight: 600;
	padding: .25em .7em; border-radius: 999px;
	background: var(--pac-bg-soft); color: #333;
}

@media (max-width: 640px) {
	.pac-job-card { flex-direction: column; align-items: flex-start; }
}

/* Single job page */
.pac-job-details { background: var(--pac-bg-soft); border-radius: var(--pac-radius); padding: 18px 22px; margin: 0 0 28px; }
.pac-job-details dl { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.pac-job-details dt { font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--pac-muted); margin: 0; }
.pac-job-details dd { margin: 2px 0 0; font-weight: 600; }

.pac-apply { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--pac-border); }
.pac-apply-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.pac-apply-form input[type=text],
.pac-apply-form input[type=email],
.pac-apply-form input[type=tel],
.pac-apply-form textarea {
	width: 100%; box-sizing: border-box; padding: .65em .75em;
	border: 1px solid #ccc; border-radius: 6px; font-size: 1rem;
}
.pac-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .pac-field-row { grid-template-columns: 1fr; } }
.pac-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.pac-notice { padding: 14px 18px; border-radius: 8px; margin: 0 0 18px; font-weight: 600; }
.pac-notice--ok { background: #e7f6ec; color: #1e6b37; }
.pac-notice--error { background: #fdecec; color: #a12222; }

/* ---- Application form ---- */
.pac-intro { color: var(--pac-muted); margin: 0 0 24px; }
.pac-req { color: var(--pac-accent); }
.pac-step { border: 1px solid var(--pac-border); border-radius: var(--pac-radius); padding: 20px 22px 8px; margin: 0 0 20px; background: #fff; }
.pac-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.2em; }
.pac-step h3 span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pac-accent); color: #fff; font-size: .7em; display: inline-flex; align-items: center; justify-content: center; }
.pac-step h3 small { font-weight: 400; color: var(--pac-muted); font-size: .7em; }
.pac-note { color: var(--pac-muted); font-size: .9em; margin: -6px 0 14px; }
.pac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 18px; }
.pac-grid--name { grid-template-columns: 1fr 80px 1fr; }
.pac-f { margin: 0 0 16px; min-width: 0; }
.pac-f--wide { grid-column: 1 / -1; }
.pac-f label, .pac-yesno legend { display: block; font-weight: 600; margin: 0 0 5px; font-size: .95em; }
.pac-apply-form input[type=text], .pac-apply-form input[type=email], .pac-apply-form input[type=tel],
.pac-apply-form input[type=date], .pac-apply-form select, .pac-apply-form textarea {
	width: 100%; box-sizing: border-box; padding: .6em .75em; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; background: #fff; }
.pac-yesno { border: 0; padding: 0; margin: 0 0 16px; }
.pac-yesno__opts { display: flex; gap: 10px; }
.pac-yesno__opts label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ccc; border-radius: 999px; padding: .45em 1.1em; cursor: pointer; font-weight: 500; margin: 0; }
.pac-yesno__opts label:has(input:checked) { border-color: var(--pac-accent); background: var(--pac-bg-soft); }
.pac-yesno input[type=radio], .pac-check input { accent-color: var(--pac-accent); width: 18px; height: 18px; margin: 0; }
.pac-yesno .pac-note { margin: 8px 0 0; }
.pac-reveal { margin: -4px 0 16px; padding-left: 14px; border-left: 3px solid var(--pac-bg-soft); }
.pac-card { background: #fafafa; border: 1px solid var(--pac-border); border-radius: 8px; padding: 14px 16px 0; margin: 0 0 12px; }
.pac-card[hidden], .pac-add[hidden], .pac-reveal[hidden] { display: none; }
.pac-card__title { font-weight: 600; margin: 0 0 10px; }
.pac-add { background: none; border: 1px dashed var(--pac-accent); color: var(--pac-accent); border-radius: 8px; padding: .6em 1em; font-weight: 600; cursor: pointer; margin: 0 0 20px; font-size: .95em; }
.pac-add:hover { background: var(--pac-bg-soft); }
.pac-avail__rows { display: grid; gap: 10px; max-width: 560px; margin-bottom: 14px; }
.pac-avail__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.pac-avail__row label { font-weight: 600; margin: 0; }
.pac-agreement { background: #fafafa; border: 1px solid var(--pac-border); border-radius: 8px; padding: 12px 16px; font-size: .88em; color: #444; max-height: 220px; overflow-y: auto; margin-bottom: 14px; }
.pac-agreement p { margin: 0 0 10px; }
.pac-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; margin: 0 0 16px; cursor: pointer; }
.pac-date { padding: .6em 0; font-weight: 500; }
.pac-invalid input, .pac-invalid select, .pac-invalid textarea, .pac-invalid .pac-yesno__opts label { border-color: #c62828 !important; }
.pac-invalid > label, .pac-invalid legend, .pac-check.pac-invalid { color: #c62828; }
.pac-form-error { color: #c62828; font-weight: 600; }
@media (max-width: 560px) {
	.pac-step { padding: 16px 14px 4px; }
	.pac-grid--name { grid-template-columns: 1fr 70px; }
	.pac-grid--name .pac-f:last-child { grid-column: 1 / -1; }
	.pac-avail__row { grid-template-columns: 1fr; gap: 4px; }
}
.pac-avail { border: 1px solid #ccc; border-radius: 8px; padding: 14px 18px 4px; margin: 0 0 16px; }
.pac-avail legend { font-weight: 600; padding: 0 6px; }
.pac-avail .pac-note { margin: 0 0 12px; }
.pac-avail__row.pac-invalid label { color: #c62828; }

/* ---- Location emphasis (v1.5) ---- */
.pac-loc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.pac-loc-filter__label { font-weight: 600; margin-right: 4px; }
.pac-loc-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: #222; border: 2px solid var(--pac-border);
	border-radius: 999px; padding: .5em 1.1em; font-size: 1rem; font-weight: 600;
	cursor: pointer; line-height: 1.2; transition: all .15s ease;
}
.pac-loc-btn:hover { border-color: var(--pac-accent); color: var(--pac-accent); }
.pac-loc-btn.is-active { background: var(--pac-accent); border-color: var(--pac-accent); color: #fff; }
.pac-loc-btn__count { font-size: .78em; background: rgba(0,0,0,.08); border-radius: 999px; padding: .1em .55em; }
.pac-loc-btn.is-active .pac-loc-btn__count { background: rgba(255,255,255,.25); }
.pac-pin { flex: none; vertical-align: -2px; }
.pac-job-card__loc {
	display: inline-flex; align-items: center; gap: 5px;
	color: var(--pac-accent); font-weight: 700; font-size: .85em;
	text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}

/* ---- Location chooser (v1.6) ---- */
.pac-chooser__title, .pac-results__title { margin: 0 0 18px; }
.pac-chooser__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pac-loc-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	text-align: left; background: #fff; color: #222; font: inherit;
	border: 2px solid var(--pac-border); border-radius: var(--pac-radius);
	padding: 22px 20px 18px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pac-loc-card:hover, .pac-loc-card:focus-visible { border-color: var(--pac-accent); box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.pac-loc-card__badge {
	position: absolute; top: 14px; right: 14px;
	background: var(--pac-accent); color: #fff; font-size: .78em; font-weight: 700;
	padding: .3em .8em; border-radius: 999px;
}
.pac-loc-card.is-empty .pac-loc-card__badge { background: #e9e9e9; color: #666; }
.pac-loc-card__name { display: inline-flex; align-items: center; gap: 6px; font-size: 1.3em; font-weight: 700; margin-top: 18px; }
.pac-loc-card__name .pac-pin { color: var(--pac-accent); width: 20px; height: 20px; }
.pac-loc-card__addr { color: var(--pac-muted); line-height: 1.5; }
.pac-loc-card__cta { margin-top: 8px; color: var(--pac-accent); font-weight: 700; }
.pac-loc-card.is-empty .pac-loc-card__cta { color: var(--pac-muted); }

.pac-results__bar { margin-bottom: 20px; }
.pac-back { background: none; border: 0; padding: 0; margin: 0 0 12px; color: var(--pac-accent); font: inherit; font-weight: 700; cursor: pointer; }
.pac-back:hover { text-decoration: underline; }
.pac-results__title { margin-bottom: 4px; }
.pac-results__addr { color: var(--pac-muted); margin: 0; }

/* Before a location is picked, only the chooser shows (only when JavaScript runs) */
.pac-jobs--chooser.pac-js .pac-results { display: none; }
.pac-jobs--chooser.pac-js.is-picked .pac-results { display: block; }
.pac-jobs--chooser.pac-js.is-picked .pac-chooser { display: none; }
.pac-jobs--chooser:not(.pac-js) .pac-results__bar { display: none; }

/* ---- Location chooser alignment fixes (v1.6.1) ---- */
.pac-chooser__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pac-chooser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pac-chooser__grid { grid-template-columns: 1fr; } }

.pac-jobs .pac-loc-card {
	/* undo theme button styling */
	height: auto; min-height: 0; width: 100%; margin: 0; line-height: 1.5;
	text-transform: none; letter-spacing: normal; white-space: normal; font-size: 1rem;
	box-shadow: none;
	/* card layout */
	justify-content: flex-start; gap: 4px; padding: 20px 22px;
}
.pac-jobs .pac-loc-card__badge { position: static; order: -1; align-self: flex-start; margin: 0 0 10px; line-height: 1.4; }
.pac-jobs .pac-loc-card__name { margin-top: 0; line-height: 1.25; }
.pac-jobs .pac-loc-card__addr { display: block; }
.pac-jobs .pac-loc-card__cta { margin-top: auto; padding-top: 14px; }

/* ---- Contact note (v1.6.2) ---- */
.pac-contact-note {
	margin: 28px 0 0; padding: 18px 22px;
	background: var(--pac-bg-soft); border-left: 4px solid var(--pac-accent); border-radius: 0;
	line-height: 1.6;
}
.pac-contact-note strong { display: block; margin-bottom: 4px; font-size: 1.05em; }
