/* ============================================================
 * ISM Client Dashboard — frontend banner styling.
 * Namespaced .ism-* only. Loaded site-wide via wp_enqueue_scripts.
 * ============================================================ */

.ism-notification-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;

	padding: 0.75rem 1.25rem;
	min-height: 2.75rem;
	box-sizing: border-box;

	font-size: 0.95rem;
	line-height: 1.4;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);

	/* bg-color + text-color are set via inline style on the element from the DB row */
}

.ism-notification-banner[hidden] {
	display: none !important;
}

.ism-notification-banner__body {
	flex: 1 1 auto;
	text-align: center;
	max-width: 1100px;
	margin: 0 auto;
}

.ism-notification-banner__body a {
	color: inherit;
	text-decoration: underline;
}

.ism-notification-banner__body p {
	margin: 0;
}

.ism-notification-close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	opacity: 0.75;
	transition: opacity 0.15s ease;

	/* Position absolutely so it doesn't push body off-center on narrow viewports */
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
}

.ism-notification-close:hover,
.ism-notification-close:focus-visible {
	opacity: 1;
	outline: 1px dotted currentColor;
	outline-offset: 2px;
}

/* On very small viewports, stack close button below body */
@media (max-width: 480px) {
	.ism-notification-banner {
		padding-right: 2.5rem; /* leave room for the X */
	}
	.ism-notification-banner__body {
		font-size: 0.875rem;
	}
}

/* ============================================================
 * Special auto-template page styling.
 * Used by Render\SpecialPageRenderer for /{slug}/ auto-render.
 * ============================================================ */

.ism-special-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #222;
}

.ism-sp-hero {
	text-align: center;
	padding: 3rem 1rem 2.5rem;
	background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
	border-radius: 12px;
	margin: 1.5rem 0 2.5rem;
}
.ism-sp-hero__inner { max-width: 720px; margin: 0 auto; }
.ism-sp-hero__title {
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	font-weight: 800;
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.ism-sp-hero__days {
	font-size: 1.05rem;
	font-weight: 600;
	color: #b32820;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1.25rem;
}
.ism-sp-hero__price {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 900;
	color: #1a1a1a;
	margin: 0.5rem 0 1.5rem;
}

.ism-sp-btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	border-radius: 9999px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ism-sp-btn--primary {
	background: #e8231c;
	color: #fff;
	box-shadow: 0 4px 14px rgba(232, 35, 28, 0.3);
}
.ism-sp-btn--primary:hover,
.ism-sp-btn--primary:focus-visible {
	background: #c91d17;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(232, 35, 28, 0.42);
	color: #fff;
}
.ism-sp-btn--lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

.ism-sp-section-h2 {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.ism-sp-restrictions {
	background: #fef9c3;
	border-left: 4px solid #facc15;
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	margin: 0 0 2rem;
}
.ism-sp-restrictions__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.6rem 1rem;
}
.ism-sp-restriction {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}
.ism-sp-restriction__icon { font-size: 1.2rem; flex: 0 0 auto; }

.ism-sp-desc {
	margin: 0 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.6;
}
.ism-sp-desc__body p { margin: 0 0 1rem; }

.ism-sp-gallery {
	margin: 0 -1rem 2.5rem;
}
.ism-sp-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}
@media (max-width: 720px) {
	.ism-sp-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
.ism-sp-gallery__item {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: #f4f4f4;
}
.ism-sp-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.ism-sp-gallery__item:hover img { transform: scale(1.04); }

.ism-sp-section {
	margin: 0 0 2.5rem;
	padding: 1.5rem 1.75rem;
	background: #fafafa;
	border-radius: 10px;
	border: 1px solid #ececec;
}
.ism-sp-section__body { font-size: 1rem; line-height: 1.6; }
.ism-sp-section__body p { margin: 0 0 0.85rem; }
.ism-sp-section__body ol,
.ism-sp-section__body ul { margin: 0 0 0.85rem 1.25rem; }
.ism-sp-section__body li { margin: 0 0 0.4rem; }

.ism-sp-related__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 720px) {
	.ism-sp-related__list { grid-template-columns: 1fr; }
}
.ism-sp-related__link {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	text-decoration: none;
	color: #222;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ism-sp-related__link:hover,
.ism-sp-related__link:focus-visible {
	transform: translateY(-2px);
	border-color: #e8231c;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	color: #222;
	text-decoration: none;
}
.ism-sp-related__name { font-weight: 700; font-size: 1rem; }
.ism-sp-related__price { font-size: 0.9rem; color: #b32820; font-weight: 600; }

.ism-sp-fine-print {
	margin: 0 0 2rem;
	font-size: 0.92rem;
	color: #555;
}
.ism-sp-fine-print summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.5rem 0;
	user-select: none;
}
.ism-sp-fine-print__body {
	padding: 0.5rem 0 0 1rem;
	border-left: 2px solid #ddd;
}

.ism-sp-cta-repeat {
	text-align: center;
	padding: 2.5rem 1rem 3rem;
	margin: 0 0 2rem;
	background: #1a1a1a;
	color: #fff;
	border-radius: 12px;
}
.ism-sp-cta-repeat__phone {
	margin: 1rem 0 0;
	font-size: 1rem;
	color: #e0e0e0;
}
.ism-sp-cta-repeat__phone a { color: #fff; text-decoration: none; }
.ism-sp-cta-repeat__phone a:hover { text-decoration: underline; }

.ism-sp-notice {
	font-size: 1.1rem;
	padding: 1rem 0;
	color: #666;
}

/* Paused state */
.ism-special-page--paused .ism-sp-hero__title { color: #666; }

/* ----------------------------------------------------------------------------
 * [ism_today] badge — overflow guard (M7 Wave A.3).
 * The headline renders a client-edited special name (up to 120 chars). Without
 * a guard a long name overflows / deforms the sitewide header pill on mobile.
 * Clamp to 2 lines with ellipsis; allow long unbroken tokens to wrap.
 * -------------------------------------------------------------------------- */
.ism-today-headline {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.ism-today-sub {
	overflow-wrap: anywhere;
}

/* ----------------------------------------------------------------------------
 * [ism_specials] shortcode — specials grid card styling.
 * Matches the glass-card look used elsewhere on the page.
 * -------------------------------------------------------------------------- */
.ism-specials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.ism-specials--empty {
	display: none;
}

.ism-special-card {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 18px;
	padding: 1.25rem 1.25rem 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ism-special-name {
	font-size: 1.4rem;
	font-weight: 900;
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: #0b0e14;
}

.ism-special-price {
	font-size: 1.05rem;
	font-weight: 800;
	color: #e8231c;
	margin: 0 0 0.5rem;
}

.ism-special-description {
	font-size: 0.9rem;
	color: #1a1f2e;
	margin: 0 0 0.5rem;
}

.ism-special-fine-print,
.ism-special-exclusions {
	font-size: 0.75rem;
	color: #999;
	margin: 0 0 0.35rem;
}

.ism-special-cta {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.6rem 1.5rem;
	border-radius: 9999px;
	background: #e8231c;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ism-special-cta:hover,
.ism-special-cta:focus-visible {
	background: #b71912;
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}
