/* =========================================================================
 * Shared styles
 * ====================================================================== */

.gcm-spaces {
	--gcm-accent: #1f6f43;
	--gcm-ink: #1d1d1b;
	--gcm-muted: #5b5b57;
	--gcm-line: #e3e1da;
	--gcm-soft: #f7f5ef;
	color: var(--gcm-ink);
	max-width: 1100px;
	margin: 0 auto;
	line-height: 1.55;
}
.gcm-spaces *, .gcm-spaces *::before, .gcm-spaces *::after { box-sizing: border-box; }

/* Tabs */
.gcm-tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--gcm-line); margin-bottom: 2rem; }
.gcm-tabs button {
	appearance: none; background: none; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--gcm-muted);
	padding: .85rem 1.25rem; margin-bottom: -2px; border-bottom: 3px solid transparent;
}
.gcm-tabs button:hover { color: var(--gcm-ink); }
.gcm-tabs button[aria-selected="true"] { color: var(--gcm-accent); border-bottom-color: var(--gcm-accent); }
.gcm-tabs button:focus-visible { outline: 3px solid var(--gcm-accent); outline-offset: 2px; }

/* Buttons */
.gcm-btn {
	display: inline-block; background: var(--gcm-accent); color: #fff !important;
	border: 0; border-radius: 999px; padding: .8rem 1.6rem;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: filter .15s ease, opacity .15s ease;
}
.gcm-btn:hover { filter: brightness(1.1); }
.gcm-btn:focus-visible { outline: 3px solid var(--gcm-accent); outline-offset: 3px; }
.gcm-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* =========================================================================
 * Community Hub tabs [gcm_hub]
 * ====================================================================== */

.gcm-hub .gcm-tabs { overflow-x: auto; scrollbar-width: none; }
.gcm-hub .gcm-tabs::-webkit-scrollbar { display: none; }
.gcm-hub .gcm-tabs button { white-space: nowrap; }

.gcm-hub-card {
	display: grid; gap: 2rem; align-items: center;
	background: var(--gcm-soft); border-radius: 14px; padding: 2rem;
}
.gcm-hub-card.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.gcm-hub-card img {
	display: block; width: 100%; height: 100%; max-height: 360px;
	object-fit: cover; border-radius: 10px;
}
.gcm-hub-text h2 { margin: 0 0 .75rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.gcm-hub-text p { margin: 0 0 1rem; font-size: 1.05rem; max-width: 65ch; }
.gcm-hub-highlights {
	list-style: none; padding: 0; margin: 0 0 1.25rem;
	display: flex; flex-wrap: wrap; gap: .5rem;
}
.gcm-hub-highlights li {
	background: #fff; border: 1px solid var(--gcm-line); border-radius: 999px;
	padding: .35rem .9rem; font-size: .9rem; font-weight: 600;
}
.gcm-hub-panel:focus-visible { outline: 3px solid var(--gcm-accent); outline-offset: 4px; border-radius: 14px; }

/* =========================================================================
 * Booking pages [gcm_spaces]
 * ====================================================================== */

/* Header */
.gcm-head { padding: 2rem; background: var(--gcm-soft); border-radius: 14px; margin-bottom: 1.5rem; }
.gcm-head h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.gcm-head p { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--gcm-muted); max-width: 60ch; }

/* Quick facts */
.gcm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
.gcm-facts > div { border: 1px solid var(--gcm-line); border-radius: 12px; padding: 1rem; }
.gcm-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gcm-muted); margin: 0; }
.gcm-facts dd { margin: .25rem 0 0; font-weight: 700; font-size: 1.05rem; }

/* Cards */
.gcm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.gcm-card { border: 1px solid var(--gcm-line); border-radius: 12px; padding: 1.25rem 1.5rem; }
.gcm-card h3 { margin: 0 0 .75rem; font-size: 1.15rem; }
.gcm-card ul { margin: 0; padding-left: 1.1rem; }
.gcm-card li { margin-bottom: .5rem; }
.gcm-card--price { border-top: 4px solid var(--gcm-accent); }
.gcm-card--price ul { list-style: none; padding: 0; }
.gcm-card--price li { padding-bottom: .6rem; border-bottom: 1px dashed var(--gcm-line); }
.gcm-card--price li:last-child { border-bottom: 0; }
.gcm-card--price strong { display: block; }

/* Agreement + FAQ */
.gcm-agreement, .gcm-faq details { border: 1px solid var(--gcm-line); border-radius: 12px; margin-bottom: .75rem; }
.gcm-agreement summary, .gcm-faq summary {
	cursor: pointer; padding: 1rem 2.5rem 1rem 1.25rem; font-weight: 700; list-style: none; position: relative;
}
.gcm-agreement summary::-webkit-details-marker, .gcm-faq summary::-webkit-details-marker { display: none; }
.gcm-agreement summary::after, .gcm-faq summary::after {
	content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; color: var(--gcm-accent);
}
.gcm-agreement[open] summary::after, .gcm-faq details[open] summary::after { content: "–"; }
.gcm-agreement summary { background: var(--gcm-soft); border-radius: 12px; }
.gcm-agreement__body { padding: .5rem 1.5rem 1.25rem; max-height: 480px; overflow-y: auto; }
.gcm-agreement__body h4 { margin: 1.1rem 0 .4rem; }
.gcm-agreement__body ul { margin: 0; padding-left: 1.1rem; }
.gcm-faq details > div { padding: 0 1.25rem 1rem; color: var(--gcm-muted); }
.gcm-faq details > div p { margin: 0; }
.gcm-section-title { margin: 2rem 0 1rem; }
.gcm-note { font-style: italic; color: var(--gcm-muted); margin-top: 1.25rem; }

/* Booking */
.gcm-book { margin-top: 2rem; padding: 2rem; border: 2px solid var(--gcm-accent); border-radius: 14px; scroll-margin-top: 120px; }
.gcm-book h3 { margin-top: 0; }
.gcm-steps { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.gcm-agree { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.25rem; cursor: pointer; }
.gcm-agree input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--gcm-accent); flex: none; }
.gcm-cal.is-open { min-width: 320px; height: 720px; margin-top: 1rem; }
.gcm-confirm { margin-top: 1rem; padding: 1rem 1.25rem; background: var(--gcm-soft); border-left: 4px solid var(--gcm-accent); border-radius: 8px; }
.gcm-alt { margin: 1.25rem 0 0; font-size: .92rem; color: var(--gcm-muted); }
.gcm-alt a { color: var(--gcm-accent); }

/* =========================================================================
 * Responsive
 * ====================================================================== */

@media (max-width: 900px) {
	.gcm-grid { grid-template-columns: 1fr; }
	.gcm-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.gcm-hub-card.has-image { grid-template-columns: 1fr; }
	.gcm-hub-card { padding: 1.25rem; }
}
@media (max-width: 520px) {
	.gcm-head, .gcm-book { padding: 1.25rem; }
	.gcm-tabs button { padding: .75rem .85rem; font-size: .95rem; }
	.gcm-cal.is-open { height: 900px; }
}