/**
 * Philo CPT — Shared Components
 * All selectors are scoped to this package's own classes so nothing here
 * touches your existing theme's global elements.
 */

/* ===================== Base scoping ===================== */
.philo-breadcrumbs,
.page-banner,
.hero,
.single-hero,
.card-grid,
.philo-card,
.reservation-form-wrap,
.philo-gallery-section,
.philo-gallery-grid,
.philo-gallery-shortcode,
.philo-menu-shortcode,
.cta-band,
.key-facts,
.amenities-list,
.filter-pills,
.prose,
.section-heading-group {
	font-family: var(--philo-font-body);
	color: var(--philo-color-ink);
	box-sizing: border-box;
}
.philo-breadcrumbs *,
.page-banner *,
.card-grid *,
.philo-card *,
.reservation-form-wrap *,
.cta-band *,
.key-facts *,
.amenities-list *,
.prose * {
	box-sizing: border-box;
}

.philo-container,
.page-banner__inner,
.card-grid,
.philo-gallery-shortcode,
.philo-menu-shortcode {
	max-width: var(--philo-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
}

/* ===================== Typography helpers ===================== */
.eyebrow-script {
	font-family: var(--philo-font-script);
	font-size: 28px;
	line-height: 1;
	color: var(--philo-color-gold);
	margin: 0 0 8px;
	display: inline-block;
}
.eyebrow-script--light { color: var(--philo-color-gold-soft); }

.section-heading,
.section-heading-group h2,
.page-banner h1,
.single-hero h1,
.philo-card__title,
.reservation-form-wrap__header h3 {
	font-family: var(--philo-font-display);
	font-weight: 600;
	color: var(--philo-color-ink);
	line-height: 1.15;
	margin: 0 0 12px;
}

.section-heading-group {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}
.section-heading-group--left { text-align: left; margin: 0 0 24px; max-width: none; }
.section-heading-group h2 { font-size: clamp(28px, 4vw, 38px); }
.section-heading-group__text { color: var(--philo-color-ink-soft); margin: 0; }

.prose {
	font-size: 17px;
	line-height: 1.8;
	color: var(--philo-color-ink-soft);
	max-width: 68ch;
}
.prose p { margin: 0 0 1.2em; }

/* ===================== Buttons ===================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--philo-font-body);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--philo-transition), box-shadow var(--philo-transition), background-color var(--philo-transition), color var(--philo-transition);
}
.btn--small { padding: 10px 20px; font-size: 13px; }
.btn--primary { background: var(--philo-color-primary); color: #fff; }
.btn--primary:hover { background: var(--philo-color-primary-dark); transform: translateY(-2px); box-shadow: var(--philo-shadow-card); color: #fff; }
.btn--gold { background: var(--philo-color-gold); color: #22190a; }
.btn--gold:hover { background: #b6811f; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(201,146,43,0.55); color: #22190a; }
.btn--outline { background: transparent; color: var(--philo-color-primary); border-color: var(--philo-color-primary); }
.btn--outline:hover { background: var(--philo-color-primary); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ===================== Breadcrumbs ===================== */
.philo-breadcrumbs {
	font-size: 13px;
	color: var(--philo-color-ink-soft);
	margin-bottom: 16px;
}
.philo-breadcrumbs a { color: var(--philo-color-ink-soft); text-decoration: none; }
.philo-breadcrumbs a:hover { color: var(--philo-color-primary); }
.philo-breadcrumbs span[aria-hidden] { margin: 0 6px; opacity: 0.5; }

/* ===================== Page banner (archive/taxonomy header) ===================== */
.page-banner {
	background: var(--philo-color-mist);
	padding: 64px 0 0;
	position: relative;
	overflow: hidden;
}
.page-banner__inner { text-align: center; padding-bottom: 48px; }
.page-banner__inner .philo-breadcrumbs { justify-content: center; display: flex; }
.page-banner h1 { font-size: clamp(34px, 5vw, 54px); }
.page-banner__subtitle { color: var(--philo-color-ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto; }
.page-banner .wave-divider { color: var(--philo-color-primary); }

/* ===================== Wave divider (recurring lake-ripple motif) ===================== */
.wave-divider {
	width: 100%;
	line-height: 0;
	color: var(--philo-color-line);
}
.wave-divider svg { width: 100%; height: 32px; display: block; }
.wave-divider__path {
	stroke-dasharray: 1400;
	stroke-dashoffset: 1400;
}
.wave-divider__path.is-drawn {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===================== Scroll reveal base state (see gsap-init.js) ===================== */
.reveal-up {
	opacity: 0;
	transform: translateY(28px);
}
.reveal-up.is-revealed {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@media (prefers-reduced-motion: reduce) {
	.reveal-up { opacity: 1; transform: none; }
}

/* ===================== Image placeholder ===================== */
.philo-img-placeholder {
	width: 100%;
	height: 100%;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--philo-color-primary) 0%, var(--philo-color-canopy) 100%);
	color: rgba(255,255,255,0.85);
}

/* ===================== Card grid ===================== */
.card-grid {
	display: grid;
	gap: 28px;
	margin: 0 auto;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
	.card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}

/* ===================== Philo Card (Room / Activity / Experience) ===================== */
.philo-card {
	background: var(--philo-color-surface);
	border-radius: var(--philo-radius-md);
	overflow: hidden;
	box-shadow: var(--philo-shadow-soft);
	transition: transform var(--philo-transition), box-shadow var(--philo-transition);
	display: flex;
	flex-direction: column;
}
.philo-card:hover { transform: translateY(-6px); box-shadow: var(--philo-shadow-card); }
.philo-card__thumb {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--philo-color-mist);
}
.philo-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.philo-card:hover .philo-card__thumb img { transform: scale(1.06); }
.philo-card__tag {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255,255,255,0.92);
	color: var(--philo-color-primary);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	letter-spacing: 0.02em;
}
.philo-card__tag--gold { background: var(--philo-color-gold); color: #22190a; }
.philo-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.philo-card__title { font-size: 20px; margin: 0; }
.philo-card__title a { color: inherit; text-decoration: none; }
.philo-card__title a:hover { color: var(--philo-color-primary); }
.philo-card__excerpt { font-size: 14.5px; color: var(--philo-color-ink-soft); line-height: 1.6; margin: 0; flex: 1; }
.philo-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.philo-card__price { font-family: var(--philo-font-display); font-size: 19px; font-weight: 600; color: var(--philo-color-primary); }
.philo-card__price small { font-family: var(--philo-font-body); font-weight: 400; font-size: 12px; color: var(--philo-color-ink-soft); }
.philo-card__price--text { font-size: 14px; font-family: var(--philo-font-body); font-weight: 600; color: var(--philo-color-gold); }

.room-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--philo-color-ink-soft);
}
.room-card__meta li { display: flex; align-items: center; gap: 6px; }
.room-card__meta svg { flex-shrink: 0; opacity: 0.7; }

.difficulty { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.difficulty--easy { background: #DCF3E4; color: #1A6B3C; }
.difficulty--moderate { background: #FDECC8; color: #8A5A00; }
.difficulty--challenging { background: #F7DADA; color: #8A1C1C; }

.experience-card__ideal { font-size: 13.5px; margin: 0; }
.experience-card__ideal strong { color: var(--philo-color-ink); }

/* ===================== Filter pills ===================== */
.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 36px;
}
.filter-pill {
	font-family: var(--philo-font-body);
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1.5px solid var(--philo-color-line);
	background: var(--philo-color-surface);
	color: var(--philo-color-ink-soft);
	text-decoration: none;
	cursor: pointer;
	transition: all var(--philo-transition);
}
.filter-pill:hover { border-color: var(--philo-color-primary); color: var(--philo-color-primary); }
.filter-pill.is-active { background: var(--philo-color-primary); border-color: var(--philo-color-primary); color: #fff; }

/* ===================== CTA band ===================== */
.cta-band {
	background: linear-gradient(120deg, var(--philo-color-primary) 0%, var(--philo-color-primary-dark) 100%);
	padding: 64px 24px;
	margin: 64px 0;
	border-radius: var(--philo-radius-lg);
	max-width: var(--philo-container);
	margin-left: auto;
	margin-right: auto;
}
.cta-band__inner {
	max-width: var(--philo-container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; max-width: 46ch; }

/* ===================== Key facts row ===================== */
.key-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	list-style: none;
	margin: 0 0 32px;
	padding: 20px 0;
	border-top: 1px solid var(--philo-color-line);
	border-bottom: 1px solid var(--philo-color-line);
}
.key-facts li { display: flex; align-items: center; gap: 10px; }
.key-facts svg { color: var(--philo-color-primary); flex-shrink: 0; }
.key-facts strong { display: block; font-size: 15px; color: var(--philo-color-ink); }
.key-facts span { display: block; font-size: 12.5px; color: var(--philo-color-ink-soft); }

/* ===================== Amenities / highlights / includes list ===================== */
.amenities-list { margin: 40px 0; }
.amenities-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.amenities-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--philo-color-ink-soft); }
.amenities-list svg { color: var(--philo-color-primary); flex-shrink: 0; }
.amenities-list--gold svg { color: var(--philo-color-gold); }
@media (max-width: 560px) { .amenities-list ul { grid-template-columns: 1fr; } }

/* ===================== Pagination ===================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 48px 0; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--philo-color-surface);
	border: 1.5px solid var(--philo-color-line);
	color: var(--philo-color-ink-soft);
	text-decoration: none;
	font-family: var(--philo-font-body);
	font-weight: 600;
	font-size: 14px;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--philo-color-primary); border-color: var(--philo-color-primary); color: #fff; }
