/* ==========================================================================
   COMPONENTS — Buttons, Cards, Forms, Badges
   BlushTheme v1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 14px 32px;
	border-radius: var(--btn-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		background-color var(--duration-medium) var(--ease-out),
		color var(--duration-medium) var(--ease-out),
		border-color var(--duration-medium) var(--ease-out),
		box-shadow var(--duration-medium) var(--ease-out),
		transform var(--duration-fast) var(--ease-out);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	text-decoration: none;
	line-height: 1;
}

.btn:active {
	transform: scale(0.98);
}

/* Primary Button — Theme overrides the colors */
.btn-primary {
	background-color: transparent;
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn-primary:hover {
	background-color: var(--color-accent);
	color: var(--color-bg-primary);
}

/* Ghost Button */
.btn-ghost {
	background-color: transparent;
	border-color: var(--color-border);
	color: var(--color-text-primary);
}

.btn-ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Filled variant (for themes like Noir, Rose) */
.btn-filled {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: #FFFFFF;
}

.btn-filled:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
}

/* Magnetic spring-back — bouncy ease when cursor leaves proximity */
.is-magnetic-return {
	transition: translate 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
	background-color: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	padding: var(--card-padding);
	transition:
		border-color var(--duration-medium) var(--ease-out),
		box-shadow var(--duration-medium) var(--ease-out),
		transform var(--duration-medium) var(--ease-out);
}

.card:hover {
	border-color: var(--color-accent);
}

.card__label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-accent);
	margin-bottom: var(--space-md);
}

.card__title {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight);
	font-size: var(--text-h4);
	line-height: var(--leading-heading);
	color: var(--color-text-heading);
	margin-bottom: var(--space-sm);
}

.card__divider {
	width: 100%;
	height: 1px;
	background-color: var(--color-accent);
	opacity: 0.3;
	margin: var(--space-md) 0;
}

.card__price {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--text-h3);
	color: var(--color-accent);
	line-height: 1;
}

.card__description {
	font-size: var(--text-body);
	color: var(--color-text-secondary);
	line-height: var(--leading-body);
	margin-top: var(--space-sm);
}

.card__meta {
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Form Elements
   -------------------------------------------------------------------------- */

.form-field {
	margin-bottom: var(--space-xl);
}

.form-label {
	display: block;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	background-color: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	border-radius: var(--input-radius);
	padding: var(--space-md) 0;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: var(--text-body);
	color: var(--color-text-primary);
	transition:
		border-color var(--duration-medium) var(--ease-out),
		box-shadow var(--duration-medium) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
	outline: none;
	border-bottom-color: var(--color-accent);
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
}

.form-select {
	appearance: none;
	cursor: pointer;
}

/* Error state */
.form-field--error .form-input,
.form-field--error .form-textarea {
	border-bottom-color: #C44;
}

.form-error {
	font-size: var(--text-sm);
	color: #C44;
	margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Badges & Tags
   -------------------------------------------------------------------------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 6px 14px;
	border-radius: var(--btn-radius);
	border: 1px solid var(--color-accent);
	color: var(--color-accent);
	white-space: nowrap;
}

.badge--available {
	color: #4A9;
	border-color: #4A9;
}

.badge--available::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #4A9;
	animation: pulse 2s ease-in-out infinite;
}

.badge--limited {
	color: #D4A03C;
	border-color: #D4A03C;
}

.badge--limited::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #D4A03C;
}

.badge--touring {
	color: #5B9BD5;
	border-color: #5B9BD5;
}

.badge--touring::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #5B9BD5;
	animation: pulse 2s ease-in-out infinite;
}

.badge--unavailable {
	color: var(--color-text-secondary);
	border-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   Skeleton Loading
   -------------------------------------------------------------------------- */

.skeleton {
	background: linear-gradient(
		90deg,
		var(--color-bg-secondary) 0%,
		var(--color-bg-elevated) 40%,
		var(--color-bg-secondary) 80%
	);
	background-size: 200% 100%;
	animation: shimmer 1.5s ease-in-out infinite;
	border-radius: var(--card-radius);
}

.skeleton--fill {
	width: 100%;
	height: 100%;
}

/* --------------------------------------------------------------------------
   Scroll Indicator
   -------------------------------------------------------------------------- */

.scroll-indicator {
	position: absolute;
	bottom: var(--space-xl);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.scroll-indicator__line {
	width: 1px;
	height: 40px;
	background: linear-gradient(
		to bottom,
		var(--color-accent),
		transparent
	);
	animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator__text {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */

.testimonial {
	position: relative;
}

.testimonial__quote {
	position: relative;
	z-index: 1;
}

.testimonial__attribution {
	position: relative;
	z-index: 1;
}

/* Decorative Quotation Mark — background layer behind quote text */
.decorative-quote {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight);
	font-size: clamp(7.5rem, 12vw, 10rem);
	line-height: 1;
	color: var(--color-accent);
	opacity: 0.15;
	position: absolute;
	top: -0.3em;
	left: 50%;
	transform: translateX(-50%);
	user-select: none;
	pointer-events: none;
	z-index: 0;
}

/* --------------------------------------------------------------------------
   Link Styles
   -------------------------------------------------------------------------- */

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: var(--tracking-uppercase);
	color: var(--color-accent);
	transition: gap var(--duration-medium) var(--ease-out);
}

.link-arrow:hover {
	gap: var(--space-md);
}

.link-arrow .arrow,
.arrow {
	font-size: 0;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	transition: transform var(--duration-medium) var(--ease-out);
}

.link-arrow .arrow::after,
.arrow::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 12px;
	background: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' fill='none' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h16M12 1l5 5-5 5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' fill='none' stroke='currentColor' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h16M12 1l5 5-5 5'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.link-arrow:hover .arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Voiceover Audio Player
   -------------------------------------------------------------------------- */

.about-bio__voiceover {
	padding: var(--space-2xl) 0;
}

.voiceover-player {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	padding: var(--space-lg) var(--space-xl);
	background-color: var(--color-bg-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--card-radius);
	max-width: 420px;
	margin: 0 auto;
	transition: border-color var(--duration-medium) var(--ease-out);
}

.voiceover-player:hover {
	border-color: var(--color-accent);
}

.voiceover-player__btn {
	width: 44px;
	height: 44px;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--color-accent);
	color: var(--color-bg-primary);
	cursor: pointer;
	transition:
		transform var(--duration-fast) var(--ease-out),
		background-color var(--duration-medium) var(--ease-out);
}

.voiceover-player__btn:hover {
	transform: scale(1.08);
}

.voiceover-player__btn:active {
	transform: scale(0.95);
}

.voiceover-player__icon--pause {
	display: none;
}

.voiceover-player.is-playing .voiceover-player__icon--play {
	display: none;
}

.voiceover-player.is-playing .voiceover-player__icon--pause {
	display: block;
}

.voiceover-player__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.voiceover-player__label {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-text-secondary);
}

.voiceover-player__track {
	width: 100%;
	height: 3px;
	background-color: var(--color-border);
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.voiceover-player__progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: var(--color-accent);
	border-radius: 2px;
	transition: width 100ms linear;
}

.voiceover-player__time {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 0.625rem;
	color: var(--color-text-secondary);
	letter-spacing: 0.05em;
	align-self: flex-end;
}

/* --------------------------------------------------------------------------
   Booking Embed (BlushDesk / Custom iframe)
   -------------------------------------------------------------------------- */

.booking-embed {
	border: none;
	background: transparent;
	padding: 0;
}

.booking-embed__iframe {
	display: block;
	width: 100%;
	min-height: 700px;
	border: none;
}

/* BlushDesk iframe: seamless, no scroll — height set via inline style from settings. */
.booking-embed__iframe--blushdesk {
	overflow: hidden;
	min-height: 0;
	transition: height 0.2s ease;
	background: transparent;
	color-scheme: normal;
}

.booking-embed--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 300px;
	border: 1px dashed var(--color-border);
	padding: var(--space-2xl);
}

.booking-embed__placeholder {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--text-h5, 1.125rem);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Tour Preview — homepage section
   -------------------------------------------------------------------------- */

.tour-preview__header {
	margin-bottom: var(--space-2xl);
}

.tour-preview__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-md);
}

.tour-preview__card {
	text-align: center;
	padding: var(--space-xl) var(--space-lg);
}

.tour-preview__city {
	margin: 0 0 var(--space-xs);
}

.tour-preview__dates {
	font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Blog Preview — homepage section
   -------------------------------------------------------------------------- */

.blog-preview__header {
	margin-bottom: var(--space-2xl);
}

.blog-preview__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-lg);
}

.blog-preview__card {
	display: block;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: transform var(--duration-medium, 0.3s) var(--ease-out, ease),
	            border-color var(--duration-medium, 0.3s) var(--ease-out, ease);
}

.blog-preview__card:hover {
	transform: translateY(-4px);
	border-color: var(--color-accent);
}

.blog-preview__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.blog-preview__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.blog-preview__card:hover .blog-preview__image img {
	transform: scale(1.04);
}

.blog-preview__content {
	padding: var(--space-lg) var(--space-md);
}

.blog-preview__title {
	margin: 0 0 var(--space-sm);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-preview__meta {
	display: flex;
	gap: var(--space-xs);
	font-size: 0.8125rem;
}

@media (max-width: 768px) {
	.blog-preview__grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	.tour-preview__grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Booking FAQ Accordion
   -------------------------------------------------------------------------- */

.booking-faq {
	margin-top: var(--space-4xl);
	padding-top: var(--space-3xl);
	border-top: 1px solid var(--color-border);
}

.booking-faq__title {
	font-family: var(--font-display);
	font-weight: var(--font-display-weight, 400);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	color: var(--color-text-heading);
	margin-bottom: var(--space-xl);
	text-align: center;
}

.booking-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.booking-faq__item {
	border-bottom: 1px solid var(--color-border);
}

.booking-faq__item:first-child {
	border-top: 1px solid var(--color-border);
}

.booking-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-lg) 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--text-body, 1rem);
	color: var(--color-text-primary);
	transition: color 200ms ease;
}

.booking-faq__question::-webkit-details-marker {
	display: none;
}

.booking-faq__question::marker {
	content: '';
}

.booking-faq__question:hover {
	color: var(--color-text-heading);
}

.booking-faq__chevron {
	flex-shrink: 0;
	color: var(--color-text-secondary);
	transition: transform 300ms ease;
}

.booking-faq__item[open] .booking-faq__chevron {
	transform: rotate(180deg);
}

.booking-faq__answer {
	padding: 0 0 var(--space-lg);
}

.booking-faq__answer p {
	font-family: var(--font-body);
	font-weight: var(--font-body-weight, 300);
	font-size: var(--text-body, 1rem);
	line-height: var(--leading-body, 1.7);
	color: var(--color-text-secondary);
	margin: 0;
}

/* Phone input with country code */
.form-phone-input {
	display: flex;
	gap: 8px;
}

.form-phone-input__code {
	flex: 0 0 auto;
	width: 100px;
	padding: var(--input-padding-y, 10px) var(--input-padding-x, 12px);
	font-size: var(--text-body, 1rem);
	font-family: inherit;
	background: var(--color-bg-elevated, #1a1a18);
	color: var(--color-text-primary, #fff);
	border: 1px solid var(--color-border, rgba(255,255,255,0.1));
	border-radius: var(--input-radius, 4px);
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 28px;
}

.form-phone-input__number {
	flex: 1;
}

/* Subscribe form feedback states */
.tour-subscribe-form__success {
	font-size: var(--text-body, 1rem);
	color: var(--color-accent);
	text-align: center;
	padding: var(--space-md) 0;
	margin: 0;
	animation: fadeIn 0.3s ease;
}

.tour-subscribe-form__error {
	font-size: 0.8125rem;
	color: #c0392b;
	margin: var(--space-sm) 0 0;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Links Page — Shared Layout & Footer
   -------------------------------------------------------------------------- */

/* External link logos + arrow */
.links-ext-logo {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	object-fit: contain;
	flex-shrink: 0;
	margin-right: 10px;
}

.links-ext-arrow {
	display: inline-block;
	vertical-align: middle;
}

.links-page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Common links page footer — scoped to .links-page only */
.links-page [class$="__footer"] {
	text-align: center;
	padding-top: 32px;
	margin-top: 24px;
}

.links-page [class$="__site-link"] {
	display: inline-block;
	font-size: 13px;
	margin-bottom: 12px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.links-page [class$="__site-link"]:hover {
	opacity: 0.7;
}

.links-page [class$="__credit"] {
	display: block;
	font-size: 11px;
	opacity: 0.4;
	text-decoration: none;
}

/* Mobile press effect on link cards */
@media (pointer: coarse) {
	.links-page a[class*="__card"]:active,
	.links-page a[class*="__pill"]:active,
	.links-page a[class*="__row"]:active {
		transform: scale(0.98);
	}
}
