/* ==========================================================================
 * OGA Core — public components (entity header, facts, CTA, request form,
 * search, system pages, portal). Reads OGA Tourism Core tokens; every value
 * has a neutral fallback so the components also work on other themes.
 * Low-specificity :where() on shared primitives so the theme always wins.
 * ======================================================================== */
:root {
	--oga-c-ink: var(--oga-ink, #241F17);
	--oga-c-muted: var(--oga-ink-muted, #6B6152);
	--oga-c-line: var(--oga-border, #E7DFD0);
	--oga-c-soft: var(--oga-bg-soft, #F6EFE1);
	--oga-c-bg: var(--oga-bg, #fff);
	--oga-c-brand: var(--oga-jungle, #24402E);
	--oga-c-accent: var(--oga-saffron, #C97A1A);
	--oga-c-alert: var(--oga-clay, #A8402B);
	--oga-c-r: var(--oga-radius-md, 10px);
	--oga-c-r-lg: var(--oga-radius-lg, 16px);
	--oga-c-head: var(--oga-font-heading, Georgia, serif);
}

:where(.oga-btn) { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--oga-c-brand); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; line-height: 1.2; min-height: 44px; }
:where(.oga-btn--outline) { background: transparent; color: var(--oga-c-brand); border: 1px solid var(--oga-c-brand); }
:where(.oga-btn--whatsapp) { background: #1DA851; color: #fff; }
:where(.oga-btn--telegram) { background: #229ED9; color: #fff; }
.oga-btn--book { background: var(--oga-c-accent); color: #fff; }
.oga-btn--book:hover { filter: brightness(.95); color: #fff; }
.oga-ico { flex: 0 0 auto; }
.oga-core .screen-reader-text, .oga-search .screen-reader-text, .oga-portal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---- images ---- */
.oga-img { display: block; width: 100%; height: auto; }
.oga-img-fallback { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--oga-c-soft), #efe5d1); color: var(--oga-c-brand); font-size: 40px; }
.oga-card .oga-img, .oga-card .oga-img-fallback { aspect-ratio: 3 / 2; object-fit: cover; }
.oga-card__summary { margin: 4px 0 0; color: var(--oga-c-muted); font-size: .92rem; line-height: 1.45; }
.oga-egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

/* ---- entity header ---- */
.oga-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .85rem; color: var(--oga-c-muted); }
.oga-crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.oga-crumbs a { color: inherit; }
.oga-ehead { margin: 8px 0 24px; }
.oga-ehead__type { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oga-c-accent); font-weight: 700; }
.oga-ehead__verified { color: var(--oga-c-brand); }
.oga-ehead__title { margin: 4px 0 8px; font-family: var(--oga-c-head); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; }
.oga-ehead__summary { margin: 0 0 16px; font-size: 1.08rem; color: var(--oga-c-muted); max-width: 70ch; }
.oga-ehead__hero { margin: 0; border-radius: var(--oga-c-r-lg); overflow: hidden; }
.oga-ehead__hero .oga-img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---- entity layout ---- */
.oga-entity { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) { .oga-entity { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .oga-entity__aside { position: sticky; top: 96px; } }
.oga-entity__body { min-width: 0; }

/* ---- facts ---- */
.oga-facts { display: grid; gap: 0; margin: 0 0 20px; border: 1px solid var(--oga-c-line); border-radius: var(--oga-c-r); overflow: hidden; }
.oga-facts__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--oga-c-line); }
.oga-facts__row:first-child { border-top: 0; }
.oga-facts dt { font-weight: 600; color: var(--oga-c-muted); font-size: .9rem; }
.oga-facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---- CTA box ---- */
.oga-cta { border: 1px solid var(--oga-c-line); border-radius: var(--oga-c-r-lg); padding: 18px; background: var(--oga-c-bg); box-shadow: 0 6px 24px rgba(36, 31, 23, .06); }
.oga-cta__price { margin: 0; font-size: 1.5rem; }
.oga-cta__from { font-size: .85rem; color: var(--oga-c-muted); }
.oga-cta__title { margin: 0; font-weight: 700; font-size: 1.15rem; }
.oga-cta__lead { margin: 4px 0 14px; color: var(--oga-c-muted); font-size: .92rem; }
.oga-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oga-cta__actions .oga-btn { flex: 1 1 120px; justify-content: center; white-space: nowrap; }
.oga-cta__actions .oga-btn--book { flex-basis: 100%; }
.oga-cta__ask { margin-top: 14px; border-top: 1px solid var(--oga-c-line); padding-top: 10px; }
.oga-cta__ask > summary { cursor: pointer; font-weight: 600; padding: 6px 0; min-height: 32px; }
.oga-cta .oga-req { margin: 8px 0 0; padding: 0; border: 0; background: none; }
.oga-cta .oga-req__title { display: none; }

/* ---- request form ---- */
.oga-req { margin: 32px 0; padding: 22px; border-radius: var(--oga-c-r-lg); background: var(--oga-c-soft); border: 1px solid var(--oga-c-line); }
.oga-req__title { margin: 0 0 4px; font-family: var(--oga-c-head); font-size: 1.45rem; }
.oga-req__intro { margin: 0 0 16px; color: var(--oga-c-muted); }
.oga-req__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.oga-field { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.oga-field--full { grid-column: 1 / -1; margin-top: 12px; }
.oga-field label { font-weight: 600; font-size: .9rem; }
.oga-field input, .oga-field select, .oga-field textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--oga-c-line); border-radius: 8px; background: #fff; font: inherit; min-height: 44px; }
.oga-field input:focus-visible, .oga-field select:focus-visible, .oga-field textarea:focus-visible { outline: 2px solid var(--oga-c-accent); outline-offset: 1px; }
.oga-req fieldset { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oga-req legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; width: 100%; }
.oga-chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--oga-c-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .9rem; min-height: 40px; box-sizing: border-box; }
.oga-chip-check input { margin: 0; accent-color: var(--oga-c-brand); }
.oga-chip-check:has(input:checked) { border-color: var(--oga-c-brand); background: #eef3ef; }
.oga-req__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.oga-req__note { font-size: .85rem; color: var(--oga-c-muted); }
.oga-req__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oga-req__error { color: var(--oga-c-alert); font-weight: 600; }
.oga-req__status:empty { display: none; }
.oga-req__status { margin: 10px 0 0; font-weight: 600; }
.oga-req__done { padding: 14px 0 0; }
.oga-req__done-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.oga-req__ref { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.oga-req__copy { margin-left: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--oga-c-line); background: #fff; cursor: pointer; }
.oga-req__handoff { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- related / soft CTA ---- */
.oga-related { margin: 40px 0 0; }
.oga-related__title { font-family: var(--oga-c-head); font-size: 1.4rem; margin: 0 0 14px; }
.oga-softcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0; padding: 18px 20px; border-radius: var(--oga-c-r-lg); background: var(--oga-c-soft); }
.oga-softcta__text { margin: 0; font-weight: 600; max-width: 52ch; }
.oga-softcta__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- system pages ---- */
.oga-sys__head { margin: 8px 0 20px; }
.oga-sys__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--oga-c-accent); }
.oga-sys__title { font-family: var(--oga-c-head); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 4px 0 8px; }
.oga-sys__lead { font-size: 1.1rem; color: var(--oga-c-muted); max-width: 70ch; margin: 0 0 8px; }
.oga-sys__more { margin: 16px 0 0; }
.oga-sys__empty { padding: 16px; border: 1px dashed var(--oga-c-line); border-radius: var(--oga-c-r); color: var(--oga-c-muted); }
.oga-sys__more-links h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.oga-chiplist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oga-chiplist a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--oga-c-line); border-radius: 999px; text-decoration: none; color: var(--oga-c-ink); background: #fff; min-height: 40px; box-sizing: border-box; }
.oga-chiplist a:hover { border-color: var(--oga-c-brand); }

/* ---- search ---- */
.oga-search { display: flex; gap: 8px; margin: 0 0 16px; max-width: 720px; }
.oga-search__input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 1px solid var(--oga-c-line); border-radius: 999px; font: inherit; min-height: 48px; box-sizing: border-box; }
.oga-sr__count { color: var(--oga-c-muted); margin: 0 0 12px; }
.oga-sr__facets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.oga-sr__facet { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--oga-c-line); text-decoration: none; color: var(--oga-c-ink); font-size: .9rem; }
.oga-sr__facet span { color: var(--oga-c-muted); margin-left: 2px; }
.oga-sr__facet.is-active { background: var(--oga-c-brand); border-color: var(--oga-c-brand); color: #fff; }
.oga-sr__facet.is-active span { color: rgba(255, 255, 255, .8); }
.oga-sr__h { font-size: 1.2rem; margin: 24px 0 12px; }
.oga-sr__more { margin-top: 18px; }

/* ---- portal ---- */
.oga-portal__title { font-family: var(--oga-c-head); margin: 0 0 4px; }
.oga-portal__lead { color: var(--oga-c-muted); margin: 0 0 16px; }
.oga-portal__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.oga-portal__card { border: 1px solid var(--oga-c-line); border-radius: var(--oga-c-r-lg); padding: 18px; background: #fff; }
.oga-portal__card input[type=text], .oga-portal__card input[type=password] { width: 100%; padding: 10px; box-sizing: border-box; min-height: 44px; }
.oga-portal__benefits { margin: 0; padding-left: 18px; line-height: 1.8; }
.oga-portal__tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--oga-c-line); margin: 0 0 18px; }
.oga-portal__tabs a { padding: 10px 14px; text-decoration: none; color: var(--oga-c-muted); border-bottom: 2px solid transparent; }
.oga-portal__tabs a.is-active { color: var(--oga-c-ink); border-bottom-color: var(--oga-c-accent); font-weight: 700; }
.oga-portal__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.oga-portal__stats div { padding: 16px; border-radius: var(--oga-c-r); background: var(--oga-c-soft); }
.oga-portal__stats strong { display: block; font-size: 1.8rem; }
.oga-portal__stats span { color: var(--oga-c-muted); font-size: .9rem; }
.oga-portal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oga-portal__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--oga-c-line); border-radius: var(--oga-c-r); }
.oga-portal__thumb .oga-img, .oga-portal__thumb .oga-img-fallback { width: 64px; height: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; font-size: 24px; }
.oga-portal__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.oga-portal__reqs { display: grid; gap: 14px; }
.oga-portal__req { border: 1px solid var(--oga-c-line); border-radius: var(--oga-c-r); padding: 14px; }
.oga-portal__req header { margin: 0 0 10px; }
.oga-portal__status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oga-portal__status select, .oga-portal__status input { min-height: 40px; padding: 6px 10px; }
.oga-portal__ok { padding: 10px 14px; background: #e6f4ea; border-radius: 8px; }
.oga-portal__note { padding: 10px 14px; background: var(--oga-c-soft); border-radius: 8px; }
.oga-portal__form .oga-field textarea { min-height: 120px; }
.oga-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: #eef; }
.oga-st--new { background: #fde8c8; color: #7a4300; }
.oga-st--confirmed, .oga-st--completed { background: #d7f3df; color: #145a2a; }
.oga-st--closed { background: #eee; color: #666; }

@media (max-width: 600px) {
	.oga-facts__row { grid-template-columns: 1fr; gap: 2px; }
	.oga-req { padding: 16px; }
	.oga-search { flex-direction: column; }
	.oga-portal__item { grid-template-columns: 56px minmax(0, 1fr); }
	.oga-portal__item .oga-portal__acts { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .oga-core * { transition: none !important; } }
