/**
* Theme Name: The Swimming Academy
* Description: This is a child theme for The Swimming Academy.
* Author: The Swimming Academy
* Template: generatepress
* Version: 1.0.0
*/

/* ==========================================================================
   Base & Typography
   ========================================================================== */

h1.entry-title {
	margin-bottom: 2rem;
}

h4.section-data {
	color: #335c67 !important;
}

p.intro {
	font-size: 1.6em;
}

table th {
	color: #555 !important;
}

p.timezone {
	font-size: 12px;
	color: #999;
}

p.report {
	font-size: 14px;
}

input#hero-s {
	background-color: #fff;
	margin-left: 10px;
	border: none;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

/* Hero */
.tsa-hero {
	position: relative;
	background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
	border-radius: 1.75rem;
	padding: 4rem 2rem 3.5rem;
	margin-bottom: 2rem;
	text-align: center;
	overflow: hidden;
}

.tsa-hero-waves {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	pointer-events: none;
}

.tsa-hero-waves svg {
	width: 100%;
	height: 100%;
}

.tsa-hero-inner {
	position: relative;
	max-width: 680px;
	margin: 0 auto;
}

.tsa-hero-eyebrow {
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
	margin: 0 0 1rem;
}

.tsa-hero-title {
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 .9rem;
}

.tsa-hero-sub {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, .8);
	margin: 0 0 2rem;
	line-height: 1.6;
}

/* Search form */
.tsa-hero-search {
	margin-bottom: 2rem;
}

.tsa-hero-search form {
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 9999px;
	padding: .35rem .35rem .35rem 1.25rem;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
	gap: .5rem;
}

.tsa-hero-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	outline: none;
	box-shadow: none;
	font-size: 1rem;
	color: #1f2937;
	padding: .5rem 0;
	margin: 0;
}

.tsa-hero-input::placeholder {
	color: #9ca3af;
}

.tsa-hero-btn {
	flex-shrink: 0;
	background: #0077b6;
	color: #fff;
	border: none;
	border-radius: 9999px;
	padding: .65rem 1.5rem;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background .18s ease;
}

.tsa-hero-btn:hover {
	background: #023e8a;
}

/* Stats */
.tsa-hero-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.tsa-hero-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .1rem;
}

.tsa-hero-stat strong {
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.tsa-hero-stat span {
	font-size: .75rem;
	color: rgba(255, 255, 255, .65);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.tsa-hero-stat-divider {
	width: 1px;
	height: 2.5rem;
	background: rgba(255, 255, 255, .2);
}

/* Feature chips */
.tsa-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	margin-bottom: 2.5rem;
}

.tsa-feature {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	padding: .45em 1em;
	font-size: .82rem;
	font-weight: 500;
	color: #374151;
}

.tsa-feature-icon {
	font-size: 1rem;
}

/* States section */
.tsa-states-section {
	margin-bottom: 3rem;
}

.tsa-section-header {
	margin-bottom: 1.25rem;
}

.tsa-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 .35rem;
}

.tsa-section-sub {
	font-size: .9rem;
	color: #6b7280;
	margin: 0;
}

/* States grid */
.tsa-states-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .6rem;
}

.tsa-state-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: .875rem;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tsa-state-card:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 119, 182, .1);
	text-decoration: none;
}

.tsa-state-name {
	font-size: .9rem;
	font-weight: 600;
	color: #1f2937;
	transition: color .15s ease;
}

.tsa-state-card:hover .tsa-state-name {
	color: #0077b6;
}

.tsa-state-count {
	font-size: .75rem;
	font-weight: 700;
	color: #6b7280;
	background: #f3f4f6;
	padding: .2em .65em;
	border-radius: 9999px;
	transition: background .15s ease, color .15s ease;
}

.tsa-state-card:hover .tsa-state-count {
	background: #dbeafe;
	color: #0077b6;
}

/* ==========================================================================
   Taxonomy archive header
   ========================================================================== */

body.tax-state .archive-header,
body.tax-city  .archive-header,
body.tax-district .archive-header {
	padding: 1.75rem 0 1rem;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 1.75rem;
}

body.tax-state .archive-title,
body.tax-city  .archive-title,
body.tax-district .archive-title {
	font-size: clamp(1.4rem, 4vw, 2.25rem);
	font-weight: 800;
	color: #111827;
	line-height: 1.2;
	margin-bottom: .35rem;
}

/* Search results heading */
body.search .site-main > h1 {
	font-size: 1.35rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

/* ==========================================================================
   FAQ accordion — override GeneratePress default button background
   ========================================================================== */

.pool-faq-btn {
	background: #fff !important;
	border: none;
	box-shadow: none;
	color: #1d2731;
	cursor: pointer;
	width: 100%;
	padding: 1rem 1.25rem;
	border-radius: 0;
}

.pool-faq-btn:hover {
	background: #f9fafb !important;
	color: #1d2731;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.pool-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem;
	font-size: .875rem;
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.pool-breadcrumb a {
	color: #0077b6;
	text-decoration: none;
}

.pool-breadcrumb a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Taxonomy / term count badge
   ========================================================================== */

.pool-term-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #0077b6;
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	padding: .2em .65em;
	border-radius: 9999px;
	margin-right: .4rem;
}

/* ==========================================================================
   Map
   ========================================================================== */

#map {
	height: 440px;
	display: block;
	width: 100%;
}

.pool-map-wrapper {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
	margin-bottom: 2rem;
}

.leaflet-map {
	display: block;
	width: 100%;
	margin: 0;
}

/* ==========================================================================
   Archive / Search / Taxonomy — card grid
   ========================================================================== */

/* Responsive card grid — wraps the site-main */
body.archive .site-main,
body.search  .site-main,
body.tax-state .site-main,
body.tax-city  .site-main,
body.tax-district .site-main {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.25rem;
	align-items: start;
}

/* Non-article children (pagination, search heading) span full width */
body.archive .site-main > :not(article),
body.search  .site-main > :not(article),
body.tax-state .site-main > :not(article),
body.tax-city  .site-main > :not(article),
body.tax-district .site-main > :not(article) {
	grid-column: 1 / -1;
}

/* Each article: vertical card */
body.archive article.type-pool,
body.search  article.type-pool,
body.tax-state article.type-pool,
body.tax-city  article.type-pool,
body.tax-district article.type-pool {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1.25rem;
	margin-bottom: 0;
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease;
}

body.archive article.type-pool:hover,
body.search  article.type-pool:hover,
body.tax-state article.type-pool:hover,
body.tax-city  article.type-pool:hover,
body.tax-district article.type-pool:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}

/* entry-header: vertical (block) flow */
body.archive .entry-header,
body.search  .entry-header,
body.tax-state .entry-header,
body.tax-city  .entry-header,
body.tax-district .entry-header {
	display: block;
}

/* Top image */
.pool-card-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
	background: #f3f4f6;
}

.pool-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

body.archive article.type-pool:hover .pool-card-image img,
body.search  article.type-pool:hover .pool-card-image img,
body.tax-state article.type-pool:hover .pool-card-image img,
body.tax-city  article.type-pool:hover .pool-card-image img,
body.tax-district article.type-pool:hover .pool-card-image img {
	transform: scale(1.06);
}

/* Status badge overlaid on image */
.pool-card-badge {
	position: absolute;
	top: .65rem;
	left: .65rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .28em .72em;
	border-radius: 9999px;
}

.pool-card-badge--open { background: rgba(5, 150, 105, .9);  color: #fff; }
.pool-card-badge--temp { background: rgba(217, 119, 6, .9);  color: #fff; }
.pool-card-badge--perm { background: rgba(220, 38, 38, .9);  color: #fff; }

/* Title */
body.archive h2.entry-title,
body.search  h2.entry-title,
body.tax-state h2.entry-title,
body.tax-city  h2.entry-title,
body.tax-district h2.entry-title {
	grid-column: unset;
	grid-row: unset;
	margin: .9rem 1rem .3rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.archive h2.entry-title a,
body.search  h2.entry-title a,
body.tax-state h2.entry-title a,
body.tax-city  h2.entry-title a,
body.tax-district h2.entry-title a {
	color: #1f2937;
	text-decoration: none;
}

body.archive h2.entry-title a:hover,
body.search  h2.entry-title a:hover,
body.tax-state h2.entry-title a:hover,
body.tax-city  h2.entry-title a:hover,
body.tax-district h2.entry-title a:hover {
	color: #0077b6;
}

/* Meta block */
.pool-archive-meta {
	grid-column: unset;
	grid-row: unset;
	padding: .35rem 1rem .9rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .6rem;
}

/* Hide excerpt */
.tax-state .entry-summary,
.tax-city  .entry-summary,
.tax-district .entry-summary,
body.archive .entry-summary,
body.search  .entry-summary {
	display: none;
}

/* ==========================================================================
   Star rating (CSS overlay technique)
   ========================================================================== */

.pool-stars {
	display: flex;
	align-items: center;
	gap: .3rem;
}

.pool-stars-icons {
	position: relative;
	display: inline-block;
	color: #d1d5db;
	font-size: .95rem;
	white-space: nowrap;
}

.pool-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f59e0b;
	white-space: nowrap;
}

.pool-stars-text {
	font-size: .78rem;
	font-weight: 600;
	color: #6b7280;
}

/* ==========================================================================
   Archive — location chip & "View Pool" button
   ========================================================================== */

.pool-location-chip {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
	font-size: .78rem;
	color: #6b7280;
}

.pool-location-chip .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #0077b6;
}

.pool-card-link {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	font-size: .78rem;
	font-weight: 600;
	color: #0077b6;
	text-decoration: none;
	padding: .3em .85em;
	border: 1.5px solid #0077b6;
	border-radius: 9999px;
	transition: background .15s ease, color .15s ease;
	white-space: nowrap;
}

.pool-card-link:hover {
	background: #0077b6;
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   Related pools tags
   ========================================================================== */

/* ── Related / nearby pools card grid ── */
.pool-related-section {
	margin-bottom: 2rem;
}

.pool-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

a.pool-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
	transition: box-shadow .2s ease, transform .2s ease;
}

a.pool-related-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
	text-decoration: none;
}

.pool-related-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.pool-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

a.pool-related-card:hover .pool-related-thumb img {
	transform: scale(1.06);
}

.pool-related-no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d1d5db;
	min-height: 120px;
}

.pool-related-no-thumb .dashicons {
	font-size: 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
}

.pool-related-info {
	padding: .85rem 1rem;
}

.pool-related-name {
	font-size: .9rem;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 .25rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pool-related-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .3rem .6rem;
}

.pool-related-meta .pool-stars {
	flex-shrink: 0;
}

.pool-related-city {
	font-size: .75rem;
	color: #6b7280;
	margin: 0;
}

/* ==========================================================================
   Search form
   ========================================================================== */

#primary form.search-form input.search-field,
.entry-content form.search-form input.search-field {
	width: 100%;
	margin: 1rem 0;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.paging-navigation {
	margin-top: 2.5rem;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.page-header {
	margin-bottom: 3rem;
}

/* ==========================================================================
   Misc
   ========================================================================== */

.featured-image {
	line-height: normal;
}

figure.featured-image figcaption {
	font-size: 12px;
	text-align: left;
	opacity: .75;
	margin-top: 1rem;
}

h2.entry-title span {
	font-size: .75em;
	color: #7e7e7e;
}

td.google-map span.dashicons {
	position: relative;
	top: 5px;
}

/* ==========================================================================
   Single Pool Page — custom classes that Tailwind utilities cannot cover
   ========================================================================== */

/* ── Gallery hero (hotel-style: left main photo + right 2 thumbs) ── */
.pool-gallery-hero {
	border-radius: 1.25rem;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	height: 280px;
	gap: 0;
	margin-bottom: 0;
}

.pool-gallery-hero--split {
	height: 400px;
}

.pool-gallery-main {
	position: relative;
	overflow: hidden;
	height: 100%;
}

.pool-gallery-main a {
	display: block;
	height: 100%;
}

.pool-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.pool-gallery-main a:hover img {
	transform: scale(1.03);
}

.pool-gallery-no-photo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0077b6, #023e8a);
}

.pool-gallery-no-photo .dashicons {
	font-size: 80px;
	width: 80px;
	height: 80px;
	color: rgba(255, 255, 255, .2);
}

.pool-gallery-thumbs {
	display: none;
}

.pool-gallery-thumb {
	position: relative;
	overflow: hidden;
	height: 100%;
}

.pool-gallery-thumb a {
	display: block;
	height: 100%;
}

.pool-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.pool-gallery-thumb a:hover img {
	transform: scale(1.06);
}

.pool-gallery-more {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .52);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .02em;
	transition: background .18s ease;
}

.pool-gallery-more:hover {
	background: rgba(0, 0, 0, .67);
	color: #fff;
}

/* Status / rating badges */
.pool-badge {
	display: inline-flex;
	align-items: center;
	font-size: .8rem;
	font-weight: 600;
	padding: .4em .9em;
	border-radius: 9999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	white-space: nowrap;
}

.pool-badge--open        { background: #2a9d8f; color: #fff; }
.pool-badge--temp-closed { background: #e9a23b; color: #fff; }
.pool-badge--closed      { background: #d6293e; color: #fff; }
.pool-badge--rating      { background: #fff;    color: #023e8a; }

/* ── Info band: fact chips + action buttons ── */
.pool-info-band {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: center;
	padding: .85rem 1.1rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
}

.pool-info-facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	flex: 1;
	min-width: 0;
}

.pool-info-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

.pool-info-chip {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .85rem;
	color: #374151;
	font-weight: 500;
	padding: .3em .75em;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
}

.pool-info-chip .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #0077b6;
	position: relative;
	top: 1px;
}

.pool-info-chip--rating {
	background: #fffbeb;
	border-color: #fde68a;
	font-size: .9rem;
}

.pool-info-chip--rating .dashicons {
	color: #f59e0b;
}

/* Description paragraph */
.pool-description-text {
	font-size: .975rem;
	line-height: 1.75;
	color: #4b5563;
}

/* ── Pool details card ── */
.pool-details-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.pool-details-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: .85rem 1.25rem;
	border-bottom: 1px solid #f3f4f6;
}

.pool-details-row:last-child { border-bottom: none; }

.pool-details-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #eff6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: .1rem;
}

.pool-details-icon .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #0077b6;
}

.pool-details-icon--web    { background: #eff6ff; }
.pool-details-icon--map    { background: #fce7f3; }
.pool-details-icon--map .dashicons    { color: #db2777; }
.pool-details-icon--coords { background: #fef3c7; }
.pool-details-icon--coords .dashicons { color: #d97706; }

.pool-details-label {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9ca3af;
	margin: 0 0 .15rem;
}

.pool-details-value {
	font-size: .9rem;
	color: #1d2731;
	font-weight: 500;
	margin: 0;
	word-break: break-word;
}

/* ── Section headings ── */
.pool-section-heading {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d2731;
	margin-bottom: 1.5rem;
}

.pool-section-heading::before {
	content: '';
	display: block;
	width: 3px;
	height: 1em;
	background: linear-gradient(180deg, #0077b6, #2a9d8f);
	border-radius: 99px;
	flex-shrink: 0;
}

/* ── 7-column opening hours week grid ── */
.pool-hours-week {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .4rem;
}

.pool-hours-day-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .25rem;
	padding: .7rem .2rem .55rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: .625rem;
	text-align: center;
}

.pool-hours-today-col {
	background: #eff6ff;
	border-color: #0077b6;
	box-shadow: 0 0 0 1px #0077b6;
}

.pool-hours-closed-col .pool-day-hours {
	color: #dc2626;
}

.pool-day-name {
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #9ca3af;
}

.pool-hours-today-col .pool-day-name { color: #0077b6; }

.pool-day-hours {
	font-size: .7rem;
	font-weight: 500;
	color: #374151;
	line-height: 1.3;
	word-break: break-word;
}

.pool-hours-today-col .pool-day-hours {
	color: #023e8a;
	font-weight: 700;
}

.pool-today-dot {
	display: block;
	width: 5px;
	height: 5px;
	background: #0077b6;
	border-radius: 50%;
	margin-top: .1rem;
}

/* ── Admission fee card ── */
/* ==========================================================================
   Features & Accessibility
   ========================================================================== */

.tsa-features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.tsa-features-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tsa-feature-chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.25;
	color: inherit;
}

.tsa-feature-chip__icon {
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

.tsa-feature-chip__label {
	line-height: 1.4;
}

/* ==========================================================================
   Nearby Amenities
   ========================================================================== */

.pool-amenities-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.pool-amenity-group {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	overflow: hidden;
}

.pool-amenity-group-title {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6b7280;
	background: #f9fafb;
	margin: 0;
	padding: .65rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.pool-amenity-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pool-amenity-item {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .65rem 1rem;
	border-bottom: 1px solid #f3f4f6;
	font-size: .875rem;
}

.pool-amenity-item:last-child {
	border-bottom: none;
}

.pool-amenity-icon {
	flex-shrink: 0;
	font-size: 1rem;
	width: 1.25rem;
	text-align: center;
}

.pool-amenity-name {
	flex: 1;
	min-width: 0;
	color: #1f2937;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pool-amenity-name:hover {
	color: #0077b6;
	text-decoration: underline;
}

.pool-amenity-dist {
	flex-shrink: 0;
	font-size: .75rem;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	padding: .15em .55em;
	border-radius: 9999px;
}

/* Loading spinner */
.pool-amenities-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 0;
}

.pool-amenities-spinner {
	width: 2rem;
	height: 2rem;
	border: 3px solid #e5e7eb;
	border-top-color: #0077b6;
	border-radius: 50%;
	animation: tsa-spin .7s linear infinite;
}

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

.pool-amenities-error {
	font-size: .875rem;
	color: #6b7280;
	padding: .75rem 0;
}

/* ==========================================================================
   Admission fee card
   ========================================================================== */

.pool-fee-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.1rem 1.25rem;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 1rem;
}

.pool-fee-icon-lg {
	width: 40px;
	height: 40px;
	background: #fef3c7;
	border-radius: .75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pool-fee-icon-lg .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #d97706;
}

/* ── All photos grid ── */
.pool-all-photos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .5rem;
}

.pool-all-photos-item {
	overflow: hidden;
	border-radius: .75rem;
	aspect-ratio: 4 / 3;
	display: block;
}

.pool-all-photos-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.pool-all-photos-item a:hover img {
	transform: scale(1.05);
}

/* Action buttons */
.pool-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .55rem 1.25rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: .875rem;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
	white-space: nowrap;
	line-height: 1.4;
}

.pool-btn .dashicons { position: relative; top: 2px; }

.pool-btn--primary       { background: #0077b6; color: #fff;    border-color: #0077b6; }
.pool-btn--primary:hover { background: #023e8a; border-color: #023e8a; color: #fff; }

.pool-btn--outline       { background: transparent; color: #374151; border-color: #d1d5db; }
.pool-btn--outline:hover { background: #f3f4f6;     color: #111827; }

.pool-btn--outline-blue       { background: transparent; color: #0077b6; border-color: #0077b6; }
.pool-btn--outline-blue:hover { background: #eff7fd; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (min-width: 480px) {
	body.archive .site-main,
	body.search  .site-main,
	body.tax-state .site-main,
	body.tax-city  .site-main,
	body.tax-district .site-main {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (min-width: 640px) {
	.tsa-states-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.pool-amenities-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.pool-gallery-hero {
		height: 420px;
	}

	.pool-gallery-hero--split {
		grid-template-columns: 3fr 2fr;
		gap: .4rem;
		height: 440px;
	}

	.pool-gallery-thumbs {
		display: grid;
		grid-template-rows: 1fr 1fr;
		gap: .4rem;
	}

	.pool-all-photos {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (min-width: 1024px) {
	.tsa-states-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	body.archive .site-main,
	body.search  .site-main,
	body.tax-state .site-main,
	body.tax-city  .site-main,
	body.tax-district .site-main {
		grid-template-columns: repeat(3, 1fr);
	}

	.pool-all-photos {
		grid-template-columns: repeat(6, 1fr);
	}

	.pool-related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media only screen and (max-width: 500px) {
	.pool-hours-week {
		grid-template-columns: repeat(4, 1fr);
	}

	.tsa-hero-stat-divider {
		display: none;
	}
}

@media only screen and (max-width: 479px) {
	#map {
		height: 280px;
	}

	.tsa-hero {
		padding: 2.5rem 1.25rem 2rem;
	}
}

/* ── Homepage: Featured pools carousel ──────────────────────────────────── */
.tsa-featured-pools {
	padding-bottom: 2rem;
}

.tsa-featured-state-block {
	margin-bottom: 2.5rem;
}

.tsa-featured-state-hd {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .875rem;
}

.tsa-featured-state-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.tsa-featured-state-title a {
	color: inherit;
	text-decoration: none;
}

.tsa-featured-state-title a:hover {
	color: #2a9d8f;
}

.tsa-featured-state-all {
	font-size: .825rem;
	font-weight: 500;
	color: #2a9d8f;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.tsa-featured-state-all:hover {
	text-decoration: underline;
}

/* Carousel wrapper */
.tsa-carousel-wrap {
	position: relative;
	width: 100%;
}

.tsa-carousel {
	display: flex;
	gap: .875rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	width: 100%;
	padding-bottom: 2px; /* prevent box-shadow clip */
}

.tsa-carousel::-webkit-scrollbar {
	display: none;
}

/* Arrow buttons — overlaid on the carousel edges */
.tsa-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 50%;
	border: 1.5px solid #e5e7eb;
	background: #fff;
	color: #374151;
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: background .15s, border-color .15s, color .15s;
}

.tsa-carousel-btn--prev { left: 0; transform: translate(-50%, -50%); }
.tsa-carousel-btn--next { right: 0; transform: translate(50%, -50%); }

.tsa-carousel-btn:hover {
	background: #2a9d8f;
	border-color: #2a9d8f;
	color: #fff;
}

/* Carousel cards: reuse pool-related-card styles, width sized to show n columns per view */
.tsa-carousel .pool-related-card {
	flex: 0 0 calc((100% - .875rem) / 2); /* 2 per slide on mobile */
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tsa-carousel .pool-related-card {
		flex: 0 0 calc((100% - 2 * .875rem) / 3); /* 3 per slide on tablet */
	}
}

@media (min-width: 1024px) {
	.tsa-carousel .pool-related-card {
		flex: 0 0 calc((100% - 3 * .875rem) / 4); /* 4 per slide on desktop */
	}
}

