/*
Theme Name: Yoi Bali
Theme URI: https://yoibali.com
Author: Yoi Bali
Description: Custom theme for Yoi Bali — Private Driver & Tour Assistant in Bali. Mobile friendly, classic editor and classic widgets.
Version: 1.8.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoibali
*/

:root {
	--yb-teal: #0F4C4A;
	--yb-teal-2: #1B625F;
	--yb-ink: #16302F;
	--yb-gold: #E2A52B;
	--yb-gold-dark: #8A6510;
	--yb-bg: #F6F9F7;
	--yb-white: #FFFFFF;
	--yb-muted: #3F5A58;
	--yb-soft: #D5E3DE;
	--yb-line: #D6E0DC;
	--yb-mist: #E1EAE6;
	--yb-sage: #7FA39C;
	--yb-input: #B9C9C3;
	--yb-max: 1160px;
	--yb-gutter: 24px;
	--yb-section: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'Sora', 'Segoe UI', sans-serif;
	color: var(--yb-ink);
	background: var(--yb-bg);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yb-teal); }
a:hover { color: var(--yb-ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--yb-gold); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: var(--yb-gold); color: var(--yb-ink);
	padding: 10px 16px; border-radius: 8px;
}

.yb-container { max-width: var(--yb-max); margin: 0 auto; padding-left: var(--yb-gutter); padding-right: var(--yb-gutter); }
.yb-section { max-width: var(--yb-max); margin: 0 auto; padding: var(--yb-section) var(--yb-gutter) 0; }
.yb-section--last { padding-bottom: var(--yb-section); }
.yb-section--narrow { max-width: 820px; }

/* Typography helpers */
.yb-eyebrow { font-size: 13px; letter-spacing: 0.22em; color: var(--yb-gold-dark); font-weight: 600; text-transform: uppercase; }
.yb-on-dark .yb-eyebrow, .yb-eyebrow--light { color: var(--yb-gold); }
.yb-h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.12; font-weight: 700; text-wrap: balance; }
.yb-h1--xl { font-size: clamp(34px, 6.5vw, 52px); line-height: 1.1; }
.yb-h2 { font-size: clamp(26px, 4.4vw, 34px); line-height: 1.2; font-weight: 700; }
.yb-h2--sm { font-size: clamp(24px, 4vw, 30px); }
.yb-lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--yb-soft); max-width: 560px; }
.yb-muted { color: var(--yb-muted); }
.yb-note { margin-top: 16px; font-size: 14px; color: var(--yb-muted); }
.yb-price { font-size: 14px; font-weight: 600; color: var(--yb-teal); }
.yb-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.yb-head p { color: var(--yb-muted); max-width: 680px; }
.yb-head--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.yb-head--row > div { display: flex; flex-direction: column; gap: 10px; }

/* Buttons */
.yb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	text-decoration: none; font: inherit; font-weight: 700; font-size: 16px;
	padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
	cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
	text-align: center; min-height: 48px;
}
.yb-btn:hover { transform: translateY(-1px); }
.yb-btn--gold { background: var(--yb-gold); color: var(--yb-ink); }
.yb-btn--gold:hover { background: #EDB443; color: var(--yb-ink); }
.yb-btn--teal { background: var(--yb-teal); color: var(--yb-bg); }
.yb-btn--teal:hover { background: var(--yb-ink); color: var(--yb-bg); }
.yb-btn--ghost { color: var(--yb-bg); border-color: var(--yb-sage); font-weight: 600; }
.yb-btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--yb-bg); }
.yb-btn--sm { font-size: 14px; padding: 13px 22px; }
.yb-btn--block { width: 100%; }
.yb-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.yb-header { background: var(--yb-bg); border-bottom: 1px solid var(--yb-line); position: sticky; top: 0; z-index: 100; }
.admin-bar .yb-header { top: 32px; }
.yb-header__inner { display: flex; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.yb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--yb-teal); flex-shrink: 0; }
.yb-brand:hover { color: var(--yb-teal); }
.yb-brand__name { font-size: 18px; font-weight: 700; letter-spacing: 0.22em; white-space: nowrap; }
.yb-brand img { max-height: 44px; width: auto; }
.yb-nav { flex-grow: 1; }
.yb-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; font-weight: 500; }
.yb-menu a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.yb-menu .current-menu-item > a, .yb-menu .current_page_item > a { font-weight: 700; border-bottom-color: var(--yb-gold); }
.yb-menu .sub-menu { display: none; }
.yb-lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.yb-lang a { display: block; text-decoration: none; padding: 10px; border-radius: 8px; }
.yb-lang .is-current a, .yb-lang .current-lang a { background: var(--yb-teal); color: var(--yb-bg); }
.yb-header__cta { flex-shrink: 0; }
.yb-toggle {
	display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--yb-line);
	border-radius: 12px; background: var(--yb-white); color: var(--yb-teal); cursor: pointer;
	align-items: center; justify-content: center; padding: 0;
}
.yb-toggle__bar, .yb-toggle__bar::before, .yb-toggle__bar::after {
	display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.yb-toggle__bar::before, .yb-toggle__bar::after { content: ""; position: absolute; left: 0; }
.yb-toggle__bar::before { top: -6px; }
.yb-toggle__bar::after { top: 6px; }
.yb-toggle[aria-expanded="true"] .yb-toggle__bar { background: transparent; }
.yb-toggle[aria-expanded="true"] .yb-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.yb-toggle[aria-expanded="true"] .yb-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.yb-hero { background: var(--yb-teal); color: var(--yb-bg); }
.yb-hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.yb-hero--home .yb-hero__inner { padding-top: 72px; padding-bottom: 72px; }
.yb-hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.yb-hero__text--wide { flex-basis: 100%; }
.yb-hero__text--wide .yb-h1 { max-width: 760px; }
.yb-hero__media { flex: 1 1 380px; min-width: 0; height: 340px; border-radius: 28px; overflow: hidden; }
.yb-hero--home .yb-hero__media { height: 420px; }
.yb-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.yb-ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--yb-soft); list-style: none; margin: 0; padding: 0; }
.yb-ticks li::before { content: "✓"; color: var(--yb-gold); margin-right: 8px; font-weight: 700; }

/* Photo placeholder */
.yb-ph {
	background: var(--yb-mist); display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 24px; color: var(--yb-muted); font-size: 13px; width: 100%; height: 100%;
}
.yb-ph--dark { background: var(--yb-teal-2); border: 1px dashed var(--yb-sage); color: var(--yb-soft); border-radius: 28px; font-size: 14px; }
.yb-ph--dashed { border: 1px dashed #8FA8A1; border-radius: 28px; font-size: 14px; }
.yb-media { overflow: hidden; }
.yb-media img { width: 100%; height: 100%; object-fit: cover; }

/* Cards & grids */
.yb-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.yb-grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.yb-grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.yb-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.yb-card {
	background: var(--yb-white); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px;
	color: var(--yb-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
a.yb-card:hover { color: var(--yb-ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 76, 74, .10); }
.yb-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.yb-card__title--sm { font-size: 17px; }
.yb-card__text { font-size: 15px; color: var(--yb-muted); }
.yb-card__text--sm { font-size: 14px; }
.yb-card--media { padding: 0; overflow: hidden; gap: 0; }
.yb-card--media .yb-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.yb-card--media .yb-card__img { height: 180px; }
.yb-card--media .yb-card__img--sm { height: 130px; }
.yb-card--media .yb-card__img--lg { height: 200px; }
.yb-card--media .yb-card__img--xl { height: 220px; }
.yb-card--dark { background: var(--yb-teal); color: var(--yb-bg); justify-content: center; }
a.yb-card--dark:hover { color: var(--yb-bg); }
.yb-card--dark .yb-card__text { color: var(--yb-soft); }
.yb-card--dark .yb-price { color: var(--yb-gold); }
.yb-card svg { flex-shrink: 0; }
.yb-card.is-hidden { display: none; }

/* Panels */
.yb-panel { border-radius: 28px; padding: 48px 40px; }
.yb-panel--dark { background: var(--yb-teal); color: var(--yb-bg); }
.yb-panel--white { background: var(--yb-white); }
.yb-panel--dark p { color: var(--yb-soft); }
.yb-panel--white p { color: var(--yb-muted); }

.yb-promise { display: flex; flex-direction: column; gap: 32px; }
.yb-promise__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.yb-promise__item { display: flex; flex-direction: column; gap: 8px; }
.yb-promise__title { font-size: 19px; font-weight: 700; color: var(--yb-gold); }
.yb-promise__text { font-size: 15px; color: var(--yb-soft); }

.yb-feature { background: var(--yb-white); border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; }
.yb-feature__media { flex: 1 1 420px; min-width: 0; min-height: 360px; }
.yb-feature__body { flex: 1 1 420px; min-width: 0; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.yb-feature__body p, .yb-feature__body ul { color: var(--yb-muted); }
.yb-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.yb-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.yb-split__media { flex: 1 1 340px; min-width: 0; height: 380px; border-radius: 28px; overflow: hidden; }
.yb-split__body { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.yb-split__body p { color: var(--yb-muted); }
.yb-split__body .yb-strong { color: var(--yb-ink); font-weight: 600; }

.yb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.yb-chip {
	padding: 10px 18px; border-radius: 999px; background: var(--yb-white); color: var(--yb-teal);
	border: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.yb-chip.is-active, .yb-chip[aria-pressed="true"] { background: var(--yb-teal); color: var(--yb-bg); }

.yb-steps { list-style: none; margin: 0; padding: 0; }
.yb-step__num {
	width: 40px; height: 40px; border-radius: 20px; background: var(--yb-gold); color: var(--yb-ink);
	font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.yb-step__title { font-size: 18px; font-weight: 700; }

/* Tables */
.yb-table-wrap { overflow-x: auto; background: var(--yb-white); border-radius: 20px; -webkit-overflow-scrolling: touch; }
.yb-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.yb-table thead tr { background: var(--yb-teal); color: var(--yb-bg); text-align: left; }
.yb-table th, .yb-table td { padding: 20px 22px; text-align: left; vertical-align: top; }
.yb-table thead th { padding: 18px 22px; font-weight: 600; }
.yb-table tbody tr + tr { border-top: 1px solid var(--yb-line); }
.yb-table tbody th { font-weight: 700; }
.yb-table td { font-weight: 600; }
.yb-table td.yb-muted { font-weight: 400; color: var(--yb-muted); }
.yb-table small { display: block; font-weight: 400; font-size: 13px; color: var(--yb-muted); }

/* CTA */
.yb-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 44px 40px; }
.yb-cta__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* Family box */
.yb-family { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 44px 40px; }
.yb-family__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.yb-family ul { flex: 1 1 300px; min-width: 0; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; color: var(--yb-soft); font-size: 15px; }

/* Forms */
.yb-book { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px; }
.yb-book__info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.yb-book__info p { color: var(--yb-muted); }
.yb-contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.yb-contact-lines strong { font-weight: 700; }
.yb-contact-lines span { color: var(--yb-muted); }
.yb-form { flex: 1 1 380px; min-width: 0; display: grid; gap: 14px; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.yb-form--card { flex: 999 1 480px; background: var(--yb-white); border-radius: 28px; padding: 36px; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.yb-form .yb-full { grid-column: 1 / -1; }
.yb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yb-field label { font-size: 13px; font-weight: 600; }
.yb-field input, .yb-field select, .yb-field textarea {
	height: 48px; border-radius: 12px; border: 1px solid var(--yb-input); padding: 0 14px;
	font: inherit; font-size: 16px; width: 100%; background: var(--yb-white); color: var(--yb-ink);
}
.yb-field select { padding: 0 10px; }
.yb-field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.yb-field input:focus, .yb-field select:focus, .yb-field textarea:focus { border-color: var(--yb-teal); outline: 2px solid rgba(15,76,74,.2); }
.yb-form button { height: 54px; }

.yb-contact { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.yb-contact__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.yb-contact__side .yb-card { font-size: 15px; gap: 12px; }
.yb-contact__side dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.yb-contact__side dt { font-weight: 600; }
.yb-contact__side dd { margin: 0; color: var(--yb-muted); word-break: break-word; }
.yb-map { height: 220px; border-radius: 14px; overflow: hidden; }
.yb-map iframe { width: 100%; height: 100%; border: 0; }

/* Content (editor output) */
.yb-content { font-size: 16px; }
.yb-content > * + * { margin-top: 1em; }
.yb-content h2 { font-size: clamp(24px, 4vw, 30px); margin-top: 1.4em; }
.yb-content h3 { font-size: 22px; margin-top: 1.3em; }
.yb-content img { border-radius: 16px; }
.yb-content ul, .yb-content ol { padding-left: 22px; }
.yb-content blockquote { margin: 0; padding: 16px 22px; border-left: 4px solid var(--yb-gold); background: var(--yb-white); border-radius: 0 12px 12px 0; }
.yb-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.yb-content th, .yb-content td { padding: 10px 12px; border: 1px solid var(--yb-line); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--yb-muted); margin-top: 6px; }

/* Blog */
.yb-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.yb-layout--full { grid-template-columns: minmax(0, 1fr); }
.yb-post { background: var(--yb-white); border-radius: 20px; overflow: hidden; }
.yb-post__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.yb-post__meta { font-size: 13px; color: var(--yb-muted); }
.yb-post__title a { text-decoration: none; color: var(--yb-ink); }
.yb-posts { display: flex; flex-direction: column; gap: 24px; }
.yb-pagination { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.yb-pagination .page-numbers { padding: 10px 16px; border-radius: 999px; background: var(--yb-white); text-decoration: none; font-weight: 600; }
.yb-pagination .current { background: var(--yb-teal); color: var(--yb-bg); }

/* Widgets */
.yb-sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--yb-white); border-radius: 20px; padding: 24px; font-size: 15px; }
.widget-title { font-size: 17px; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.widget a { text-decoration: none; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--yb-input); padding: 0 12px; font: inherit; }
.search-form .search-submit { height: 44px; border: 0; border-radius: 999px; background: var(--yb-teal); color: var(--yb-bg); padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; }

/* Footer */
.yb-footer { background: var(--yb-ink); color: var(--yb-soft); font-size: 14px; }
.yb-footer a { color: var(--yb-soft); text-decoration: none; }
.yb-footer a:hover { color: var(--yb-gold); }
.yb-footer__widgets { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-top: 48px; }
.yb-footer .widget { background: transparent; padding: 0; }
.yb-footer .widget-title { color: var(--yb-bg); }
.yb-footer__bar { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.yb-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.yb-footer__brand strong { letter-spacing: 0.22em; color: var(--yb-bg); }
.yb-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.yb-footer-menu a { display: inline-block; padding: 6px 0; }

/* Floating WhatsApp (mobile) */
.yb-wa-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; color: #fff; display: none; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.yb-wa-float:hover { color: #fff; }

/* Responsive */
@media (max-width: 1080px) {
	.yb-toggle { display: inline-flex; }
	.yb-header__inner { flex-wrap: wrap; }
	.yb-header__panel {
		display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px;
		padding: 8px 0 12px;
	}
	.yb-header__panel.is-open { display: flex; }
	.yb-menu { flex-direction: column; gap: 0; font-size: 16px; }
	.yb-menu li + li { border-top: 1px solid var(--yb-line); }
	.yb-menu a { padding: 14px 4px; border-bottom: 0; }
	.yb-menu .current-menu-item > a, .yb-menu .current_page_item > a { color: var(--yb-ink); box-shadow: inset 4px 0 0 var(--yb-gold); padding-left: 14px; }
	.yb-header__cta { width: 100%; }
}
@media (min-width: 1081px) {
	.yb-header__panel { display: flex; flex-grow: 1; align-items: center; gap: 16px 28px; }
}
@media (max-width: 782px) {
	.admin-bar .yb-header { top: 46px; }
}
@media (max-width: 600px) {
	:root { --yb-gutter: 16px; --yb-section: 56px; }
	#wpadminbar { position: fixed; }
	.yb-brand__name { font-size: 16px; }
	.yb-hero__inner, .yb-hero--home .yb-hero__inner { padding-top: 44px; padding-bottom: 44px; gap: 32px; }
	.yb-hero__media, .yb-hero--home .yb-hero__media { height: 240px; border-radius: 20px; }
	.yb-hero .yb-btns .yb-btn { flex: 1 1 100%; }
	.yb-panel, .yb-cta, .yb-family, .yb-book { padding: 32px 22px; border-radius: 22px; }
	.yb-feature { border-radius: 22px; }
	.yb-feature__media { min-height: 220px; }
	.yb-feature__body { padding: 28px 22px; }
	.yb-split { gap: 28px; }
	.yb-split__media { height: 260px; border-radius: 22px; }
	.yb-form--card { padding: 24px 18px; border-radius: 22px; }
	.yb-cta .yb-btn { width: 100%; }
	.yb-table th, .yb-table td { padding: 14px 16px; }
	.yb-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--yb-gutter) * -1); margin-right: calc(var(--yb-gutter) * -1); padding: 0 var(--yb-gutter) 4px; scrollbar-width: none; }
	.yb-chips::-webkit-scrollbar { display: none; }
	.yb-chip { white-space: nowrap; flex-shrink: 0; }
	.yb-wa-float { display: inline-flex; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}
@media (max-width: 900px) {
	.yb-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Media boxes: image always fills its frame */
.yb-feature__media, .yb-split__media, .yb-hero__media, .yb-card__img { position: relative; }
.yb-feature__media > img, .yb-split__media > img, .yb-hero__media > img, .yb-card__img > img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Icons */
.yb-ico { flex-shrink: 0; display: block; }
.yb-btn .yb-ico { width: 1.25em; height: 1.25em; margin-left: -2px; }

/* Language dropdown */
.yb-langdd { position: relative; flex-shrink: 0; }
.yb-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(22, 48, 47, .12); display: block; }
.yb-langdd__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
	border: 1px solid var(--yb-line); border-radius: 999px; background: var(--yb-white);
	color: var(--yb-teal); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.yb-langdd__btn:hover { border-color: var(--yb-sage); }
.yb-langdd__btn[aria-expanded="true"] { border-color: var(--yb-teal); box-shadow: 0 0 0 3px rgba(15, 76, 74, .12); }
.yb-langdd__chev { transition: transform .2s ease; }
.yb-langdd__btn[aria-expanded="true"] .yb-langdd__chev { transform: rotate(180deg); }
.yb-langdd__list {
	list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
	min-width: 180px; background: var(--yb-white); border: 1px solid var(--yb-line); border-radius: 16px;
	box-shadow: 0 16px 40px rgba(22, 48, 47, .14);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.yb-langdd.is-open .yb-langdd__list { opacity: 1; visibility: visible; transform: none; }
.yb-langdd__list a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
	text-decoration: none; color: var(--yb-ink); font-size: 15px; font-weight: 500;
}
.yb-langdd__list a:hover, .yb-langdd__list a:focus-visible { background: var(--yb-bg); color: var(--yb-teal); }
.yb-langdd__list a.is-current { font-weight: 700; color: var(--yb-teal); }
.yb-langdd__check { margin-left: auto; color: var(--yb-gold-dark); }

@media (max-width: 1080px) {
	.yb-langdd__btn { display: none; }
	.yb-langdd__list {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0;
		display: flex; gap: 8px; padding: 0; border: 0; background: transparent;
	}
	.yb-langdd__list li { flex: 1 1 0; }
	.yb-langdd__list a { justify-content: center; border: 1px solid var(--yb-line); background: var(--yb-white); padding: 12px 8px; font-size: 14px; }
	.yb-langdd__list a.is-current { border-color: var(--yb-teal); box-shadow: inset 0 0 0 1px var(--yb-teal); }
	.yb-langdd__check { display: none; }
}

/* ===== Package detail ===== */
.yb-hero--detail .yb-hero__inner { padding-top: 40px; padding-bottom: 48px; }
.yb-hero--detail .yb-hero__text { gap: 16px; }
.yb-detail__summary { max-width: 760px; }
.yb-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--yb-soft); }
.yb-crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--yb-sage); }
.yb-crumbs a { color: var(--yb-soft); text-decoration: none; }
.yb-crumbs a:hover { color: var(--yb-gold); }
.yb-crumbs [aria-current] { color: var(--yb-bg); opacity: .8; }
.yb-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.yb-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(127,163,156,.5); color: var(--yb-bg); }
.yb-facts svg { color: var(--yb-gold); flex-shrink: 0; }

.yb-detail__gallery-wrap { padding-top: 32px; }
.yb-gallery { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; border-radius: 24px; overflow: hidden; }
.yb-gallery__item { position: relative; display: block; background: var(--yb-mist); overflow: hidden; }
.yb-gallery__item:first-child { grid-row: 1 / span 2; }
.yb-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yb-gallery__item:hover img { transform: scale(1.03); }
.yb-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.yb-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 400px; }
.yb-gallery--2 .yb-gallery__item:first-child { grid-row: auto; }
.yb-gallery--3 { grid-template-columns: 2fr 1fr; }

.yb-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.yb-detail__main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.yb-detail__h { font-size: clamp(22px, 3.4vw, 26px); font-weight: 700; margin-bottom: 18px; }
.yb-detail__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.admin-bar .yb-detail__side { top: 132px; }
.yb-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.yb-checks li { position: relative; padding-left: 30px; }
.yb-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--yb-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23F6F9F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.yb-checks--x li::before { background: var(--yb-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 7 6 6M13 7l-6 6' fill='none' stroke='%233F5A58' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.yb-detail__block > .yb-checks { background: var(--yb-white); border-radius: 20px; padding: 24px; }
.yb-incl { gap: 16px; }

.yb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.yb-timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--yb-line); }
.yb-timeline__item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.yb-timeline__item:last-child { padding-bottom: 0; }
.yb-timeline__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--yb-gold); color: var(--yb-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px var(--yb-bg); }
.yb-timeline__time { font-size: 13px; font-weight: 700; color: var(--yb-gold-dark); letter-spacing: .04em; }
.yb-timeline__title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.yb-timeline__text { color: var(--yb-muted); font-size: 15px; margin-top: 4px; }

.yb-faq { display: flex; flex-direction: column; gap: 10px; }
.yb-faq__item { background: var(--yb-white); border-radius: 16px; padding: 0 22px; }
.yb-faq__item summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; position: relative; }
.yb-faq__item summary::-webkit-details-marker { display: none; }
.yb-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--yb-teal); }
.yb-faq__item[open] summary::after { content: "\2013"; }
.yb-faq__item p { color: var(--yb-muted); padding-bottom: 18px; font-size: 15px; }

.yb-bookbox { background: var(--yb-white); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(15, 76, 74, .08); border: 1px solid var(--yb-line); }
.yb-bookbox__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--yb-gold-dark); font-weight: 600; }
.yb-bookbox__price { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--yb-teal); }
.yb-bookbox__note { font-size: 13px; color: var(--yb-muted); }
.yb-bookbox__facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--yb-line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.yb-bookbox__facts li { display: flex; flex-direction: column; gap: 2px; }
.yb-bookbox__facts span { font-size: 12px; color: var(--yb-muted); }
.yb-back { font-weight: 600; text-decoration: none; font-size: 14px; padding: 8px 4px; }
.yb-detail__related { margin-top: var(--yb-section); }
.yb-card__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--yb-teal); }
.yb-card--dark .yb-card__more { color: var(--yb-gold); }
.yb-mbar { display: none; }

/* ===== Blog ===== */
.yb-blog { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.yb-blog__main { min-width: 0; }
.yb-postcard { position: relative; }
.yb-postcard .yb-card__title a { color: inherit; text-decoration: none; }
.yb-stretched::after { content: ""; position: absolute; inset: 0; }
.yb-postcard__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--yb-muted); align-items: center; }
.yb-postcard__cat { font-weight: 700; color: var(--yb-gold-dark); letter-spacing: .08em; text-transform: uppercase; }
.yb-grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.yb-blog-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.admin-bar .yb-blog-side { top: 132px; }
.yb-sidecard { background: var(--yb-white); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.yb-sidecard--dark { background: var(--yb-teal); color: var(--yb-bg); }
.yb-sidecard--dark p { color: var(--yb-soft); font-size: 14px; }
.yb-sidecard__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.yb-minilist, .yb-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.yb-minilist a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--yb-ink); }
.yb-minilist__img { position: relative; display: block; width: 64px; height: 64px; border-radius: 12px; background: var(--yb-mist); overflow: hidden; }
.yb-minilist__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yb-minilist__title { display: block; font-weight: 700; font-size: 14px; line-height: 1.35; }
.yb-minilist__meta { display: block; font-size: 12px; color: var(--yb-teal); font-weight: 600; margin-top: 2px; }
.yb-linklist a { text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; }
.yb-linklist li + li { border-top: 1px solid var(--yb-line); padding-top: 12px; }

.yb-article { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.yb-article__lede { font-size: clamp(17px, 2.3vw, 19px); line-height: 1.6; color: var(--yb-ink); font-weight: 500; padding-left: 18px; border-left: 4px solid var(--yb-gold); }
.yb-article__thumb { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; }
.yb-article__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yb-article__thumb figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(22, 48, 47, .65); padding: 4px 10px; border-radius: 999px; max-width: calc(100% - 20px); }
.yb-toc { background: var(--yb-white); border-radius: 20px; border: 1px solid var(--yb-line); }
.yb-toc summary { cursor: pointer; padding: 16px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.yb-toc summary::-webkit-details-marker { display: none; }
.yb-toc summary::after { content: "\25BE"; color: var(--yb-teal); transition: transform .2s ease; }
.yb-toc details:not([open]) summary::after { transform: rotate(-90deg); }
.yb-toc ol { margin: 0; padding: 0 22px 18px; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.yb-toc li a { display: block; text-decoration: none; padding: 6px 10px; border-radius: 10px; font-size: 15px; line-height: 1.4; }
.yb-toc li a:hover { background: var(--yb-bg); }
.yb-toc__h2 { counter-increment: toc; }
.yb-toc__h2 a { font-weight: 600; }
.yb-toc__h2 a::before { content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 32px; color: var(--yb-gold-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.yb-toc__h3 a { padding-left: 42px; font-size: 14px; color: var(--yb-muted); }
.yb-article__body { font-size: 17px; line-height: 1.8; color: #2A4442; }
.yb-article__body > * + * { margin-top: 1.1em; }
.yb-article__body h2 { font-size: clamp(23px, 3.6vw, 28px); margin-top: 1.8em; color: var(--yb-ink); scroll-margin-top: 110px; }
.yb-article__body h3 { font-size: 20px; margin-top: 1.5em; color: var(--yb-ink); scroll-margin-top: 110px; }
.yb-article__body a { font-weight: 600; }
.yb-article__body table { width: 100%; font-size: 15px; background: var(--yb-white); border-radius: 14px; border-collapse: collapse; }
.yb-article__body thead th { background: var(--yb-teal); color: var(--yb-bg); border: 0; text-align: left; }
.yb-article__body td, .yb-article__body th { border: 0; border-bottom: 1px solid var(--yb-line); padding: 12px 14px; }
.yb-article__packages .yb-detail__h { margin-bottom: 16px; }
.yb-article__cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 30px 32px; }
.yb-article__cta > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.yb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.yb-tags a { background: var(--yb-white); padding: 6px 14px; border-radius: 999px; font-size: 13px; text-decoration: none; font-weight: 600; }
.yb-author { display: flex; gap: 16px; align-items: flex-start; background: var(--yb-white); border-radius: 20px; padding: 22px; }
.yb-author__img { border-radius: 50%; flex-shrink: 0; }
.yb-author__name { font-weight: 700; }
.yb-author__bio { font-size: 14px; color: var(--yb-muted); margin-top: 4px; }

@media (max-width: 960px) {
	.yb-detail, .yb-blog { grid-template-columns: minmax(0, 1fr); }
	.yb-detail__side, .yb-blog-side { position: static; }
	.yb-gallery, .yb-gallery--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
	.yb-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
	.yb-gallery__item:nth-child(n+4) { display: none; }
	.yb-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 260px; }
	.yb-gallery--2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
	.yb-gallery--2 .yb-gallery__item:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
	.yb-gallery, .yb-gallery--3 { border-radius: 18px; grid-template-rows: 220px 110px; }
	.single-yb_tour .yb-wa-float, .single-yb_activity .yb-wa-float { display: none; }
	.yb-mbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--yb-white); border-top: 1px solid var(--yb-line);
		box-shadow: 0 -8px 24px rgba(22, 48, 47, .08);
	}
	.yb-mbar__price { font-size: 13px; font-weight: 700; color: var(--yb-teal); line-height: 1.3; }
	.yb-mbar .yb-btn { flex-shrink: 0; }
	.single-yb_tour .yb-footer, .single-yb_activity .yb-footer { padding-bottom: 72px; }
	.yb-article__body { font-size: 16px; }
	.yb-article__body table { display: block; overflow-x: auto; }
	.yb-article__cta { padding: 24px 20px; }
	.yb-article__cta .yb-btn { width: 100%; }
}

@media (max-width: 960px) { .yb-gallery.yb-gallery--1, .yb-gallery.yb-gallery--2 { grid-template-rows: 240px; } }

.yb-footer__credit { border-top: 1px solid rgba(213, 227, 222, .15); padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: var(--yb-sage); }
.yb-footer__credit a { color: var(--yb-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.single-yb_tour .yb-footer__credit, .single-yb_activity .yb-footer__credit { padding-bottom: 22px; }

/* Homepage service cards: aligned price footer */
.yb-service { gap: 12px; height: 100%; }
.yb-service__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--yb-bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; transition: background-color .15s ease; }
.yb-service__icon svg { width: 30px; height: 30px; }
.yb-service:hover .yb-service__icon { background: #FCF1DA; }

/* ===== Price footer (all cards) ===== */
.yb-pf { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--yb-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
.yb-card__body > .yb-pf, .yb-card > .yb-pf { margin-top: auto; }
.yb-pf__from { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yb-gold-dark); line-height: 1.4; }
.yb-pf__amount { grid-column: 1; font-size: 19px; font-weight: 700; color: var(--yb-teal); line-height: 1.25; }
.yb-pf__amount--ask { font-size: 15px; }
.yb-pf__unit { grid-column: 1; font-size: 13px; color: var(--yb-muted); line-height: 1.4; }
.yb-pf__arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yb-bg); color: var(--yb-teal); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
a.yb-card:hover .yb-pf__arrow { background: var(--yb-teal); color: var(--yb-bg); transform: translateX(2px); }

/* dark cards (custom tour) */
.yb-card--dark .yb-pf { border-top-color: rgba(213, 227, 222, .2); }
.yb-card--dark .yb-pf__from { color: var(--yb-gold); }
.yb-card--dark .yb-pf__amount { color: var(--yb-bg); }
.yb-card--dark .yb-pf__unit { color: var(--yb-soft); }
.yb-card--dark .yb-pf__arrow { background: rgba(255, 255, 255, .1); color: var(--yb-gold); }
a.yb-card--dark:hover .yb-pf__arrow { background: var(--yb-gold); color: var(--yb-ink); }

/* package cards */
.yb-pkg .yb-card__body { gap: 10px; }
.yb-pkg--custom { padding: 26px; justify-content: flex-start; gap: 12px; }
.yb-pkg--custom .yb-eyebrow { margin-top: auto; }
.yb-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.yb-badge {
	position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px;
	background: rgba(246, 249, 247, .94); color: var(--yb-teal); font-size: 12px; font-weight: 700;
	box-shadow: 0 2px 8px rgba(22, 48, 47, .12); backdrop-filter: blur(4px);
}

/* detail page booking box */
.yb-bookbox__pf .yb-pf { border-top: 0; padding-top: 0; }
.yb-bookbox__pf .yb-pf__amount { font-size: 28px; }
.yb-bookbox__pf .yb-pf__unit { font-size: 14px; }

/* mobile booking bar */
.yb-mbar__price .yb-pf { border-top: 0; padding-top: 0; row-gap: 0; }
.yb-mbar__price .yb-pf__from { font-size: 10px; }
.yb-mbar__price .yb-pf__amount { font-size: 17px; }
.yb-mbar__price .yb-pf__unit { font-size: 12px; }
.yb-mbar__price { min-width: 0; }

/* ===== Detail layout v2: gallery slider beside sticky booking box ===== */
.yb-detail-wrap { padding-top: 40px; }
.yb-detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
.yb-detail__main { gap: 40px; }
.yb-detail__side { top: 96px; }
.admin-bar .yb-detail__side { top: 128px; }

.yb-gal { display: flex; flex-direction: column; gap: 12px; }
.yb-gal__stage { position: relative; border-radius: 24px; overflow: hidden; background: var(--yb-mist); box-shadow: 0 18px 40px rgba(15, 76, 74, .10); }
.yb-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; outline: none; }
.yb-gal__track::-webkit-scrollbar { display: none; }
.yb-gal__track:focus-visible { box-shadow: inset 0 0 0 3px var(--yb-gold); }
.yb-gal__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.yb-gal__zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.yb-gal__zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yb-gal__credit { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 120px); font-size: 11px; line-height: 1.3; color: #fff; background: rgba(22, 48, 47, .62); padding: 4px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yb-gal__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: rgba(246, 249, 247, .92); color: var(--yb-teal); display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; box-shadow: 0 6px 18px rgba(22, 48, 47, .18); transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
}
.yb-gal__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.yb-gal__nav--prev { left: 16px; }
.yb-gal__nav--next { right: 16px; }
.yb-gal__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; background: rgba(22, 48, 47, .62); padding: 5px 11px; border-radius: 999px; letter-spacing: .04em; }

.yb-gal__thumbs { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.yb-gal__tnav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--yb-line); background: var(--yb-white); color: var(--yb-teal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.yb-gal__tnav:hover { background: var(--yb-teal); color: var(--yb-bg); border-color: var(--yb-teal); }
.yb-gal__strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 3px; }
.yb-gal__strip::-webkit-scrollbar { display: none; }
.yb-gal__thumb { flex: 0 0 auto; width: 104px; height: 68px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: .55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .15s ease, outline-color .15s ease; background: var(--yb-mist); }
.yb-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yb-gal__thumb:hover { opacity: .85; }
.yb-gal__thumb.is-active { opacity: 1; outline-color: var(--yb-gold); }

.yb-lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.yb-lightbox::backdrop { background: rgba(10, 24, 23, .92); }
.yb-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.yb-lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: 12px; }
.yb-lightbox__close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.yb-lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.yb-lightbox__nav:hover, .yb-lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.yb-lightbox__nav--prev { left: 20px; }
.yb-lightbox__nav--next { right: 20px; }
.yb-lightbox__cap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(92vw, 900px); text-align: center; color: var(--yb-soft); font-size: 13px; }

.yb-secnav { position: sticky; top: 76px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px; background: rgba(246, 249, 247, .94); backdrop-filter: blur(8px); border: 1px solid var(--yb-line); border-radius: 999px; }
.admin-bar .yb-secnav { top: 108px; }
.yb-secnav::-webkit-scrollbar { display: none; }
.yb-secnav a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--yb-muted); transition: background-color .15s ease, color .15s ease; }
.yb-secnav a:hover { color: var(--yb-teal); background: var(--yb-white); }
.yb-secnav a.is-active { background: var(--yb-teal); color: var(--yb-bg); }
.yb-detail__block { scroll-margin-top: 150px; }

.yb-bookbox { padding: 28px; gap: 16px; }
.yb-bookbox__pf .yb-pf__amount { font-size: 30px; letter-spacing: -.01em; }
.yb-bookbox .yb-btn { font-size: 15px; padding: 15px 20px; }
.yb-bookbox__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--yb-muted); }
.yb-bookbox__trust li { display: flex; gap: 8px; align-items: flex-start; }
.yb-bookbox__trust svg { flex-shrink: 0; color: var(--yb-teal); margin-top: 2px; }

@media (max-width: 1080px) {
	.yb-secnav { top: 72px; }
}
@media (max-width: 960px) {
	.yb-detail { grid-template-columns: minmax(0, 1fr); }
	.yb-detail__side { position: static; }
	.yb-detail-wrap { padding-top: 0; }
	.yb-detail-wrap .yb-gal { margin-left: calc(var(--yb-gutter) * -1); margin-right: calc(var(--yb-gutter) * -1); }
	.yb-gal__stage { border-radius: 0; box-shadow: none; }
	.yb-gal__thumbs { padding: 0 var(--yb-gutter); }
	.yb-secnav { border-radius: 16px; }
}
@media (max-width: 600px) {
	.yb-gal__track { aspect-ratio: 4 / 3; }
	.yb-gal__nav { width: 38px; height: 38px; }
	.yb-gal__nav--prev { left: 10px; }
	.yb-gal__nav--next { right: 10px; }
	.yb-gal__thumbs { grid-template-columns: minmax(0, 1fr); }
	.yb-gal__tnav { display: none; }
	.yb-gal__thumb { width: 76px; height: 52px; border-radius: 10px; }
	.yb-gal__credit { max-width: calc(100% - 90px); font-size: 10px; }
	.yb-lightbox__nav { width: 42px; height: 42px; }
	.yb-lightbox__nav--prev { left: 8px; }
	.yb-lightbox__nav--next { right: 8px; }
}

/* Gallery thumbnails: equal columns, 3:2 */
.yb-gal__thumbs { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 10px; }
.yb-gal__tnav { width: 40px; height: 40px; }
.yb-gal__strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 10px) / 6); gap: 10px; padding: 4px 3px; scroll-snap-type: x proximity; }
.yb-gal__thumb { width: auto; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; scroll-snap-align: start; position: relative; }
.yb-gal__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 600px) {
	.yb-gal__strip { grid-auto-columns: calc((100% - 4 * 8px) / 5); gap: 8px; }
	.yb-gal__thumb { width: auto; height: auto; border-radius: 10px; }
}
@media (max-width: 600px) {
	.yb-gal__thumbs { grid-template-columns: minmax(0, 1fr); }
}

.yb-checks--sm { font-size: 14px; gap: 8px; }
.yb-checks--sm li { padding-left: 26px; }
.yb-checks--sm li::before { width: 18px; height: 18px; background-size: 18px; top: 2px; }

/* ===== Detail hero v2 ===== */
.yb-hero--detail { position: relative; overflow: hidden; }
.yb-hero--detail.has-image {
	background:
		linear-gradient(90deg, rgba(15, 76, 74, .98) 0%, rgba(15, 76, 74, .94) 38%, rgba(15, 76, 74, .70) 68%, rgba(15, 76, 74, .45) 100%),
		var(--yb-hero-img) center / cover no-repeat,
		var(--yb-teal);
}
.yb-hero--detail .yb-hero__inner { padding-top: 36px; padding-bottom: 44px; }
.yb-hero--detail .yb-hero__text { gap: 14px; }
.yb-hero--detail .yb-h1 { max-width: 760px; }
.yb-detail__lede { max-width: 640px; font-size: clamp(16px, 2vw, 18px); }
.yb-keyfacts {
	list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 900px; border-radius: 20px; background: rgba(9, 44, 43, .55); border: 1px solid rgba(127, 163, 156, .35);
	backdrop-filter: blur(6px);
}
.yb-keyfacts li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; min-width: 0; }
.yb-keyfacts li + li { border-left: 1px solid rgba(127, 163, 156, .3); }
.yb-keyfacts__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(226, 165, 43, .14); color: var(--yb-gold); display: inline-flex; align-items: center; justify-content: center; }
.yb-keyfacts__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yb-keyfacts__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yb-gold); }
.yb-keyfacts__value { font-size: 16px; font-weight: 700; color: var(--yb-bg); line-height: 1.35; }
.yb-keyfacts__sub { font-size: 13px; color: var(--yb-soft); line-height: 1.45; }

.yb-tldr { position: relative; background: var(--yb-white); border: 1px solid var(--yb-line); border-left: 4px solid var(--yb-gold); border-radius: 0 18px 18px 0; padding: 20px 24px 20px 22px; }
.yb-tldr__label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yb-gold-dark); margin-bottom: 6px; }
.yb-tldr p { font-size: 16px; line-height: 1.7; color: var(--yb-ink); }

@media (max-width: 960px) {
	.yb-hero--detail.has-image {
		background:
			linear-gradient(180deg, rgba(15, 76, 74, .92) 0%, rgba(15, 76, 74, .97) 100%),
			var(--yb-hero-img) center / cover no-repeat,
			var(--yb-teal);
	}
	.yb-keyfacts { grid-template-columns: minmax(0, 1fr); }
	.yb-keyfacts li + li { border-left: 0; border-top: 1px solid rgba(127, 163, 156, .3); }
	.yb-keyfacts li { padding: 14px 16px; }
}

/* Header: keep the menu on one line in every language */
@media (min-width: 1081px) {
	.yb-header__inner { gap: 16px clamp(16px, 2vw, 28px); }
	.yb-header__panel { gap: 16px clamp(14px, 1.8vw, 28px); min-width: 0; }
	.yb-nav { min-width: 0; }
	.yb-menu { flex-wrap: nowrap; gap: 0 clamp(12px, 1.5vw, 24px); white-space: nowrap; }
	.yb-header__cta { white-space: nowrap; }
	html[lang="ja"] .yb-menu, html[lang^="ko"] .yb-menu { font-size: 13.5px; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
	.yb-brand__name { font-size: 16px; letter-spacing: .18em; }
	.yb-menu { font-size: 13.5px; gap: 0 14px; }
	.yb-header__cta { padding: 12px 18px; font-size: 13.5px; }
	.yb-langdd__btn { padding: 0 10px; }
}

/* ===== Legal pages ===== */
.yb-legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1040px; margin: 0 auto; }
.yb-legal--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.yb-legal__side { position: sticky; top: 100px; }
.admin-bar .yb-legal__side { top: 132px; }
.yb-legal__side .yb-toc ol { gap: 2px; }
.yb-legal__side .yb-toc li a { font-size: 14px; padding: 6px 8px; }
.yb-legal__body { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.yb-legal__body .yb-article__body { font-size: 16px; line-height: 1.75; }
.yb-legal__body .yb-article__body h2 { font-size: clamp(21px, 3vw, 24px); margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--yb-line); }
.yb-legal__body .yb-article__body h2:first-of-type { border-top: 0; padding-top: 0; }
.yb-legal__body .yb-article__body h3 { font-size: 18px; }
.yb-legal__body .yb-article__body code { font-size: 14px; background: var(--yb-mist); padding: 1px 6px; border-radius: 6px; }
.yb-legal__contact { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 26px; }
.yb-legal__contact > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.yb-legal__contact p { font-size: 14px; }

.yb-footer__legal { padding-bottom: 18px; }
.yb-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; }
.yb-footer__legal a { color: var(--yb-soft); }
.yb-footer__legal a:hover { color: var(--yb-gold); }
.yb-form__note { font-size: 12px; line-height: 1.5; color: var(--yb-muted); margin: 0; }
.yb-form__note a { font-weight: 600; }

@media (max-width: 960px) {
	.yb-legal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.yb-legal__side { position: static; }
	.yb-legal__side .yb-toc details:not([open]) + * { display: none; }
}
