/* ═══════════════════════════════════════════════════════════════
   Concierge Golf Elementor Addons - Frontend Styles
═══════════════════════════════════════════════════════════════ */

/* ── SIDEBAR NAV ──────────────────────────────────────────────────── */
.sidebar-nav {
	background: var(--cream, #f7f5f0);
	border: 1px solid var(--border, #dde3ec);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 24px;
	list-style: none;
}

.sidebar-nav-title {
	background: var(--navy, #1d3461);
	padding: 14px 20px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-nav li {
	border-bottom: 1px solid var(--border, #dde3ec);
	margin: 0;
	padding: 0;
}

.sidebar-nav li:last-child {
	border-bottom: none;
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	font-size: 11px;
	font-weight: 500;
	color: var(--muted, #6b7a8d);
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.35, 1);
	position: relative;
}

.sidebar-nav a::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--border, #dde3ec);
	flex-shrink: 0;
	transition: background 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
	color: var(--navy, #1d3461);
	background: var(--white, #ffffff);
	padding-left: 26px;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.is-active::before {
	background: var(--gold, #c4973a);
}

/* Smooth transitions */
.sidebar-nav a {
	cursor: pointer;
}

.sidebar-nav a:focus-visible {
	outline: 2px solid var(--gold, #c4973a);
	outline-offset: -2px;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.sidebar-nav a {
		padding: 10px 16px;
		font-size: 10px;
	}

	.sidebar-nav a:hover,
	.sidebar-nav a.is-active {
		padding-left: 22px;
	}
}

/* ── TOUR TOGGLE ─────────────────────────────────────────────────── */
/*
 * All selectors below are deliberately scoped under .cga-tour-toggles
 * (two-class or three-class chains) to beat Elementor and theme button
 * resets without needing !important.
 */

.cga-tour-toggles {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

.cga-tour-toggles .cga-toggle-item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dde3ec;
	border-radius: 3px;
	overflow: hidden;
	background: #ffffff;
	transition: border-color 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cga-tour-toggles .cga-toggle-item.is-open {
	border-color: #2a4a80;
}

/* Three-class chain — beats any single/double class Elementor or theme rule */
.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
	padding: 18px 22px;
	margin: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	background: #ffffff;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger:focus,
.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger:focus-visible {
	outline: none;
	box-shadow: none;
}

.cga-tour-toggles .cga-toggle-item.is-open .cga-toggle-trigger,
.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger:hover {
	background: #e8f1f9;
}

.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger .cga-toggle-header-left {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 14px;
	flex: 1;
	min-width: 0;
}

.cga-tour-toggles .cga-toggle-item .cga-toggle-day {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 3px;
	background: #1d3461;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4px;
	box-sizing: border-box;
	transition: background-color 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cga-tour-toggles .cga-toggle-item.is-open .cga-toggle-day {
	background: #c4973a;
}

.cga-toggle-day-num {
	font-family: 'Cormorant Garamond', serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: #ffffff;
}

.cga-toggle-day-label {
	font-size: 7px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

/* Text wrap zone — flex: 1 + min-width: 0 allows proper shrink and line wrap */
.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger .cga-toggle-title-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cga-toggle-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #1d3461;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
}

.cga-toggle-item.is-open .cga-toggle-title {
	color: #1d3461;
}

.cga-toggle-subtitle {
	font-size: 10px;
	font-weight: 400;
	line-height: 1.4;
	color: #6b7a8d;
	margin-top: 2px;
	overflow-wrap: break-word;
	word-break: break-word;
	white-space: normal;
}

.cga-tour-toggles .cga-toggle-item .cga-toggle-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid #dde3ec;
	background: transparent;
	color: #6b7a8d;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.35, 1),
	            border-color 0.3s cubic-bezier(0.25, 1, 0.35, 1),
	            background-color 0.3s cubic-bezier(0.25, 1, 0.35, 1),
	            color 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cga-toggle-icon-wrap i,
.cga-toggle-icon-wrap svg {
	font-size: 12px;
	width: 12px;
	height: 12px;
}

.cga-tour-toggles .cga-toggle-item.is-open .cga-toggle-icon-wrap {
	transform: rotate(180deg);
	border-color: #1d3461;
	background: #1d3461;
	color: #ffffff;
}

.cga-icon-closed,
.cga-icon-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	transition: opacity 0.2s ease;
}

.cga-icon-open {
	opacity: 0;
}

.cga-toggle-item.is-open .cga-icon-open {
	opacity: 1;
}

.cga-toggle-item.is-open .cga-icon-closed {
	opacity: 0;
}

.cga-toggle-content {
	display: block;
}

.cga-toggle-content-inner {
	padding: 0 22px 22px 82px;
	font-size: 13px;
	line-height: 1.75;
	color: #3d4a5c;
	background: #ffffff;
}

.cga-toggle-content-inner > :first-child {
	margin-top: 0;
}

.cga-toggle-content-inner > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger {
		padding: 16px 18px;
	}

	.cga-toggle-title {
		font-size: 12px;
	}

	.cga-toggle-subtitle {
		font-size: 9px;
	}

	.cga-toggle-content-inner {
		padding: 0 18px 18px 72px;
	}
}

@media (max-width: 767px) {
	.cga-tour-toggles .cga-toggle-item .cga-toggle-trigger .cga-toggle-header-left {
		gap: 10px;
	}

	.cga-toggle-title {
		font-size: 11px;
	}

	.cga-toggle-subtitle {
		font-size: 9px;
	}

	.cga-tour-toggles .cga-toggle-item .cga-toggle-day {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
	}

	.cga-toggle-day-num {
		font-size: 15px;
	}

	.cga-toggle-day-label {
		font-size: 6px;
	}

	.cga-tour-toggles .cga-toggle-item .cga-toggle-icon-wrap {
		flex: 0 0 24px;
		width: 24px;
		height: 24px;
	}

	.cga-toggle-icon-wrap i,
	.cga-toggle-icon-wrap svg {
		font-size: 10px;
		width: 10px;
		height: 10px;
	}

	.cga-toggle-content-inner {
		padding: 0 14px 14px 58px;
	}
}

/* ══════════════════════════════════════════════════════════════════
   COURSE CAROUSEL
══════════════════════════════════════════════════════════════════ */
.cgc-wrapper {
	--cgc-slides: 2;
	--cgc-scroll-by: 1;
	--cgc-gap:    20px;
	--cgc-ov-b:   rgba(10,18,40,0.95);
	--cgc-ov-m:   rgba(10,18,40,0.40);
	--cgc-ov-t:   rgba(10,18,40,0);
	width: 100%;
	box-sizing: border-box;
}

.cgc-viewport {
	overflow: hidden;
	width: 100%;
}

.cgc-track {
	display: flex;
	gap: var(--cgc-gap, 20px);
	transition: transform 0.7s cubic-bezier(0.25, 1, 0.35, 1);
	will-change: transform;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
}

.cgc-track.is-dragging {
	cursor: grabbing;
	transition: none;
}

/* Card — JS sets explicit flex-basis via inline style */
.cgc-card {
	flex: 0 0 auto;
	min-width: 0;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #0a1228;
	box-sizing: border-box;
}

.cgc-card-img {
	width: 100%;
	padding-top: 70%;
	position: relative;
	overflow: hidden;
}

.cgc-card-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
	transform: scale(1.04);
	transition: transform 6s cubic-bezier(0.25, 1, 0.35, 1);
	display: block;
}

.cgc-card:hover .cgc-card-img img {
	transform: scale(1.1);
}

.cgc-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(10,18,40,0.95) 0%, rgba(10,18,40,0.4) 45%, transparent 75%);
	background: linear-gradient(
		to top,
		var(--cgc-ov-b, rgba(10,18,40,0.95)) 0%,
		var(--cgc-ov-m, rgba(10,18,40,0.40)) 45%,
		var(--cgc-ov-t, rgba(10,18,40,0)) 75%
	);
	pointer-events: none;
}

.cgc-card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 24px 22px 20px;
}

.cgc-card-tag {
	display: inline-block;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #d4a847;
	background: rgba(196, 151, 58, 0.15);
	border: 1px solid rgba(196, 151, 58, 0.30);
	padding: 3px 9px;
	border-radius: 1px;
	margin-bottom: 10px;
}

.cgc-card-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
	color: #ffffff;
	margin: 0;
}

.cgc-card-title em {
	font-style: italic;
	color: #d4a847;
}

/* ── Footer ───────────────────────────────────────────────────── */
.cgc-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.cgc-arrows {
	display: flex;
	gap: 8px;
}

.cgc-arr-btn {
	-webkit-appearance: none;
	appearance: none;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: 1.5px solid #dde3ec;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	cursor: pointer;
	padding: 0;
	outline: none;
	box-shadow: none;
	transition: border-color 0.3s cubic-bezier(0.25, 1, 0.35, 1),
	            background-color 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cgc-arr-btn:focus,
.cgc-arr-btn:focus-visible {
	outline: none;
	box-shadow: none;
}

.cgc-arr-btn svg {
	flex-shrink: 0;
	stroke: #1d3461;
	transition: stroke 0.3s cubic-bezier(0.25, 1, 0.35, 1);
}

.cgc-arr-btn:hover {
	border-color: #1d3461;
	background-color: #1d3461;
}

.cgc-arr-btn:hover svg {
	stroke: #ffffff;
}

.cgc-arr-btn:disabled,
.cgc-arr-btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.cgc-progress-track {
	flex: 1;
	height: 2px;
	background: #dde3ec;
	border-radius: 2px;
	overflow: hidden;
}

.cgc-progress-fill {
	height: 100%;
	background: #1d3461;
	border-radius: 2px;
	width: 0%;
	transition: width 0.4s cubic-bezier(0.25, 1, 0.35, 1);
}

.cgc-dots {
	display: flex;
	gap: 6px;
	align-items: center;
}

.cgc-dot {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #dde3ec;
	border: none;
	cursor: pointer;
	padding: 0;
	outline: none;
	transition: background-color 0.3s, width 0.3s, border-radius 0.3s;
}

.cgc-dot.is-active {
	background: #1d3461;
	width: 20px;
	border-radius: 3px;
}

@media (max-width: 767px) {
	.cgc-footer {
		gap: 12px;
		margin-top: 16px;
	}

	.cgc-arr-btn {
		width: 36px;
		height: 36px;
	}

	.cgc-card-title {
		font-size: 18px;
	}

	.cgc-card-body {
		padding: 16px 16px 14px;
	}
}
