/**
 * Alov Travel UI System
 * --------------------------------------------------------------------------
 * Single source of truth for design tokens, typography and reusable UI.
 * Page-specific layout belongs in main.css. Do not duplicate these primitives.
 */

:root {
  /* Brand + semantic colors */
  --color-primary: #e94f2b;
  --color-primary-strong: #b9341a;
  --color-primary-soft: #ffc1ad;
  --color-primary-pale: #ffd1c3;
  --color-heading: #102a43;
  --color-text: #17212b;
  --color-text-muted: #637381;
  --color-nav-text: #293b4b;
  --color-label: #35495a;
  --color-surface: #f5f7f9;
  --color-surface-soft: #f4f7f9;
  --color-border: #dfe5ea;
  --color-border-strong: #bdc9d1;
  --color-border-dashed: #b8c6cf;
  --color-placeholder-text: #83939f;
  --color-placeholder-surface: #dce7ed;
  --color-white: #fff;
  --color-black: #000;
  --color-brand-deep: #0b2134;
  --color-brand-deep-2: #0c2438;
  --color-brand-deep-3: #123853;
  --color-hero-accent: #ff9a78;
  --color-media-light: #dbe7ed;
  --color-media-mid: #9db3bf;
  --color-media-dark: #0f344c;
  --color-media-muted: #6a8797;
  --color-media-deep: #0e344e;
  --color-media-bluegray: #78929f;
  --color-on-dark: #d8e5ec;
  --color-on-dark-muted: #cbd9e1;
  --color-on-dark-soft: #d9e2e8;
  --color-on-dark-footer: #bccbd4;
  --color-overlay-deep: rgba(10, 30, 47, 0.74);
  --color-success: #17643a;
  --color-error: #8f2525;

  /* RGB channels for transparent states */
  --rgb-primary: 233, 79, 43;
  --rgb-heading: 16, 42, 67;
  --rgb-success: 30, 126, 73;
  --rgb-error: 185, 45, 45;
  --rgb-white: 255, 255, 255;

  /* Typography */
  --font-family-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-display: clamp(2.75rem, 6vw, 4.875rem);
  --font-size-h1: clamp(2.5rem, 5vw, 4.125rem);
  --font-size-h2: clamp(2rem, 4vw, 3.25rem);
  --font-size-h3: clamp(1.5rem, 2.4vw, 2rem);
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.125rem;
  --font-size-h6: 1rem;
  --font-size-body: 1rem;
  --font-size-body-lg: 1.0625rem;
  --font-size-lead: 1.125rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;
  --font-size-meta: 0.8125rem;
  --font-size-2xs: 0.6875rem;
  --font-size-micro: 0.625rem;
  --font-size-card-title: 1.375rem;
  --font-size-card-title-lg: 1.625rem;
  --font-size-display-mobile: 2.9375rem;
  --font-size-display-mobile-sm: 2.5rem;
  --font-size-error: clamp(5rem, 12vw, 6.875rem);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 650;
  --font-weight-bold: 700;
  --font-weight-strong: 750;
  --font-weight-heavy: 800;
  --font-weight-black: 900;
  --line-height-body: 1.65;
  --line-height-heading: 1.12;
  --line-height-tight: 1.04;
  --letter-spacing-heading: -0.035em;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 6.25rem;

  /* Shape + elevation */
  --radius-control: 0.75rem;
  --radius-button: 0.875rem;
  --radius-card: 1.25rem;
  --radius-card-lg: 1.5rem;
  --radius-media: 1.75rem;
  --radius-hero: 2.125rem;
  --radius-panel: 2rem;
  --radius-pill: 999px;
  --shadow-card: 0 22px 60px rgba(var(--rgb-heading), 0.12);
  --shadow-soft: 0 18px 52px rgba(var(--rgb-heading), 0.09);
  --shadow-header: 0 8px 24px rgba(var(--rgb-heading), 0.06);
  --shadow-floating: 0 24px 64px rgba(var(--rgb-heading), 0.18);
  --shadow-hero: 0 35px 80px rgba(0, 0, 0, 0.28);
  --focus-ring: 0 0 0 3px rgba(var(--rgb-primary), 0.12);

  /* Layout + rhythm */
  --layout-max: 1240px;
  --layout-narrow: 800px;
  --content-width: 760px;
  --layout-gutter: clamp(18px, 2.5vw, 32px);
  --layout-container: var(--layout-max);
  --header-height-desktop: 80px;
  --header-height-mobile: 68px;
  --header-border-width: 1px;
  --admin-bar-offset: 0px;
  --section-space-y: clamp(76px, 7vw, 100px);
  --section-space-y-compact: clamp(56px, 5vw, 72px);
  --section-space-y-tight: clamp(40px, 4vw, 56px);
  --section-heading-gap: clamp(24px, 3vw, 36px);
  --section-content-gap: clamp(32px, 4vw, 48px);
  --grid-gap: clamp(20px, 2.2vw, 28px);
  --card-padding: clamp(20px, 2.2vw, 28px);
  --hero-space-top: clamp(64px, 6vw, 84px);
  --hero-space-bottom: clamp(56px, 5.5vw, 76px);
  --breadcrumb-gap-after: var(--space-5);
  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;

  /* Form controls */
  --control-height: 50px;
  --control-height-lg: 52px;
  --control-height-sm: 42px;
  --control-padding-x: 14px;

  /* Canonical button sizing. Keep all first-party and adapter CTAs on this scale. */
  --button-height: var(--control-height);
  --button-height-lg: var(--control-height-lg);
  --button-height-sm: var(--control-height-sm);
  --button-padding-x: 23px;
  --button-padding-x-sm: 18px;
  --button-font-size: var(--font-size-body);
  --button-font-size-sm: var(--font-size-small);
  --control-padding-y: 11px;
  --control-choice-size: 20px;
  --control-choice-radius: 6px;
  --control-color-size: 44px;

  /* Backward-compatible aliases. New CSS should use semantic names above. */
  --flame: var(--color-primary);
  --flame-dark: var(--color-primary-strong);
  --navy: var(--color-heading);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --surface: var(--color-surface);
  --border: var(--color-border);
  --white: var(--color-white);
  --radius-sm: var(--radius-control);
  --radius: var(--radius-card);
  --radius-lg: var(--radius-panel);
  --shadow: var(--shadow-card);
  --container: var(--layout-container);
  --font: var(--font-family-base);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  text-rendering: optimizeLegibility;
}


/* Keep sticky/fixed site chrome below the WordPress admin bar when logged in. */
body.admin-bar {
  --admin-bar-offset: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --admin-bar-offset: 46px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: var(--color-heading);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  text-wrap: balance;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.alov-lead,
.page-hero__lead,
.destination-hero__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-body);
}

small,
.alov-small {
  font-size: var(--font-size-small);
}

button,
input,
select,
textarea {
  font: inherit;
}

/*
 * Text-like controls only.
 * Never broaden this selector back to a bare `input`: checkbox, radio, file,
 * range, color and button-like inputs must preserve their native dimensions.
 */
:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select,
  textarea
) {
  width: 100%;
  min-height: var(--control-height);
  padding: var(--control-padding-y) var(--control-padding-x);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-white);
  background-clip: padding-box;
  color: var(--color-text);
  outline: 0;
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

/*
 * Single-line controls use an exact canonical height. `min-height` alone lets
 * native date/select widgets and browser defaults produce visibly different
 * boxes even when border/padding tokens match.
 */
:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select
) {
  height: var(--control-height);
  min-height: var(--control-height);
  line-height: 1.2;
}

/* Keep native date controls aligned with text/select controls on WebKit. */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  min-width: 0;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="week"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/*
 * Explicit first-party control primitive.
 * Use this class on theme-owned forms so late-loading plugin styles cannot
 * accidentally split field geometry by input type.
 */
.alov-form-control {
  display: block;
  width: 100%;
  height: var(--control-height);
  min-height: var(--control-height);
  margin: 0;
  padding: var(--control-padding-y) var(--control-padding-x);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-white);
  background-clip: padding-box;
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
  outline: 0;
  box-shadow: none;
}

select.alov-form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
}

.alov-form-control--textarea {
  height: auto;
  min-height: 120px;
  line-height: var(--line-height-body);
  resize: vertical;
}

.alov-form-control:hover:not(:disabled) {
  border-color: var(--color-border-strong);
}

.alov-form-control:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23637381' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m5.5 7.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  textarea
)::placeholder {
  color: var(--color-placeholder-text);
  opacity: 1;
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select,
  textarea
):hover:not(:disabled) {
  border-color: var(--color-border-strong);
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select,
  textarea
):focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  select,
  textarea
):disabled {
  cursor: not-allowed;
  background-color: var(--color-surface-soft);
  color: var(--color-text-muted);
  opacity: 0.75;
}

:is(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  textarea
):read-only:not(:disabled) {
  background-color: var(--color-surface-soft);
}

/* Choice controls are custom-rendered so plugin/browser resets cannot make them invisible. */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: var(--control-choice-size) !important;
  min-width: var(--control-choice-size);
  max-width: var(--control-choice-size);
  height: var(--control-choice-size) !important;
  min-height: 0 !important;
  max-height: var(--control-choice-size);
  margin: 0;
  padding: 0 !important;
  border: 1.5px solid var(--color-border-strong);
  background-color: var(--color-white);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(var(--rgb-heading), 0.05);
  cursor: pointer;
  vertical-align: middle;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

input[type="checkbox"] {
  border-radius: var(--control-choice-radius);
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: var(--color-primary);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

input[type="checkbox"]:checked {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m5.2 10.1 3 3.1 6.6-7'/%3E%3C/svg%3E");
}

input[type="radio"]:checked {
  border-color: var(--color-primary);
  background-color: var(--color-white);
  background-image: radial-gradient(circle at center, var(--color-primary) 0 42%, transparent 45%);
}

input[type="checkbox"]:active:not(:disabled),
input[type="radio"]:active:not(:disabled) {
  transform: scale(0.94);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
  background-color: var(--color-surface-soft);
  border-color: var(--color-border);
  opacity: 0.65;
}

input[type="checkbox"]:disabled + span,
input[type="radio"]:disabled + span {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Choice copy must never inherit uppercase field-label styling. */
input[type="checkbox"] + span,
input[type="radio"] + span {
  display: inline;
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

/* Other native input types have explicit, non-text-field dimensions. */
input[type="file"] {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
}

input[type="file"]::file-selector-button {
  min-height: var(--control-height-sm);
  margin-right: var(--space-3);
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface-soft);
  color: var(--color-heading);
  cursor: pointer;
  font: inherit;
  font-weight: var(--font-weight-semibold);
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--color-primary);
  background: rgba(var(--rgb-primary), 0.06);
  color: var(--color-primary-strong);
}

input[type="range"] {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--color-primary);
}

input[type="color"] {
  width: var(--control-color-size);
  min-width: var(--control-color-size);
  height: var(--control-color-size);
  min-height: var(--control-color-size);
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-white);
  cursor: pointer;
}

input[type="hidden"] {
  display: none !important;
}

fieldset {
  min-width: 0;
}

label > span,
.alov-field-label,
.plan-field > span,
.plan-interests legend,
.plan-service-intent legend {
  display: block;
  margin: 0 0 var(--space-2);
  color: var(--color-label);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-strong);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reusable choice-row primitive for first-party forms. */
.alov-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 0;
  margin: 0;
  cursor: pointer;
}

.alov-choice > :is(input[type="checkbox"], input[type="radio"]) {
  margin-top: 0.12em;
}

.alov-choice > span {
  display: inline;
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

/* Layout primitives: one container and one vertical rhythm across the site. */
.alov-container {
  width: 100%;
  max-width: calc(var(--layout-max) + (var(--layout-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.alov-container--narrow {
  max-width: calc(var(--layout-narrow) + (var(--layout-gutter) * 2));
}

.alov-section {
  padding-block: var(--section-space-y);
}

.alov-section--compact {
  padding-block: var(--section-space-y-compact);
}

.alov-section--tight {
  padding-block: var(--section-space-y-tight);
}

.alov-section--surface {
  background: var(--color-surface);
}

.alov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.alov-button {
  --button-background: var(--color-primary);
  --button-border: var(--color-primary);
  --button-label: var(--color-white);
  --button-hover-background: var(--color-primary-strong);
  --button-hover-border: var(--color-primary-strong);
  --button-hover-label: var(--color-white);

  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--button-height);
  padding: 0 var(--button-padding-x);
  border: 1px solid var(--button-border);
  border-radius: var(--radius-button);
  background: var(--button-background);
  color: var(--button-label) !important;
  cursor: pointer;
  font-family: var(--font-family-base);
  font-size: var(--button-font-size);
  font-weight: var(--font-weight-strong);
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  box-shadow: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.alov-button:hover,
.alov-button:focus-visible {
  border-color: var(--button-hover-border);
  background: var(--button-hover-background);
  color: var(--button-hover-label) !important;
}

.alov-button:hover {
  transform: translateY(-2px);
}

.alov-button:active {
  transform: translateY(0);
}

.alov-button[disabled],
.alov-button.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.alov-button--small {
  min-height: var(--button-height-sm);
  padding-inline: var(--button-padding-x-sm);
  font-size: var(--button-font-size-sm);
}

.alov-button--large {
  min-height: var(--button-height-lg);
}

.alov-button--full {
  width: 100%;
}

/* Standard secondary action on light surfaces. */
.alov-button--secondary,
.alov-button--ghost-dark {
  --button-background: transparent;
  --button-border: var(--color-heading);
  --button-label: var(--color-heading);
  --button-hover-background: var(--color-heading);
  --button-hover-border: var(--color-heading);
  --button-hover-label: var(--color-white);
}

/* Primary action on flame/brand surfaces where the normal flame fill cannot read. */
.alov-button--inverse,
.alov-button--light {
  --button-background: var(--color-white);
  --button-border: var(--color-white);
  --button-label: var(--color-heading);
  --button-hover-background: var(--color-surface);
  --button-hover-border: var(--color-surface);
  --button-hover-label: var(--color-heading);
}

/* Standard secondary action on dark or brand surfaces. */
.alov-button--secondary-inverse,
.alov-button--ghost {
  --button-background: transparent;
  --button-border: rgba(var(--rgb-white), 0.5);
  --button-label: var(--color-white);
  --button-hover-background: rgba(var(--rgb-white), 0.12);
  --button-hover-border: var(--color-white);
  --button-hover-label: var(--color-white);
}

/* Legacy dark buttons now resolve to the canonical primary role. */
.alov-button--dark {
  --button-background: var(--color-primary);
  --button-border: var(--color-primary);
  --button-label: var(--color-white);
  --button-hover-background: var(--color-primary-strong);
  --button-hover-border: var(--color-primary-strong);
  --button-hover-label: var(--color-white);
}

.alov-eyebrow,
.page-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(var(--rgb-primary), 0.22);
  border-radius: var(--radius-pill);
  background: rgba(var(--rgb-primary), 0.07);
  color: var(--color-primary-strong);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-heavy);
  line-height: 1.2;
  letter-spacing: 0.105em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--section-heading-gap);
  margin-bottom: var(--section-heading-gap);
}

.section-heading h2,
.split-feature h2,
.alov-cta h2 {
  max-width: var(--content-width);
  margin: 0;
  font-size: var(--font-size-h2);
  line-height: 1.08;
  letter-spacing: var(--letter-spacing-heading);
}

.text-link {
  color: var(--color-primary-strong);
  font-weight: var(--font-weight-strong);
}

.text-link:hover {
  color: var(--color-primary);
}

/* Generic card primitive for new components. */
.alov-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: none;
}

.alov-card--elevated {
  box-shadow: var(--shadow-card);
}

/* Breadcrumbs: Rank Math and fallback markup resolve to the same component. */
.rank-math-breadcrumb,
.alov-breadcrumbs {
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--breadcrumb-gap-after);
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

.rank-math-breadcrumb > p,
.alov-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
  margin-bottom: var(--breadcrumb-gap-after);
}

.rank-math-breadcrumb > p {
  margin-bottom: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.rank-math-breadcrumb a,
.alov-breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.rank-math-breadcrumb a:hover,
.alov-breadcrumbs a:hover {
  color: var(--color-primary-strong);
}

.rank-math-breadcrumb .separator,
.alov-breadcrumbs > span[aria-hidden="true"] {
  color: var(--color-border-strong);
  font-size: 0.9em;
}

.rank-math-breadcrumb .last,
.alov-breadcrumbs > span:last-child {
  color: var(--color-heading);
  font-weight: var(--font-weight-semibold);
}

.page-hero--center .rank-math-breadcrumb > p,
.page-hero--center .alov-breadcrumbs {
  justify-content: center;
}

.page-hero--unified .rank-math-breadcrumb > p,
.page-hero--unified .alov-breadcrumbs {
  justify-content: flex-start;
}

/* Canonical inner-page hero. */
.archive-hero,
.page-hero,
.article-hero,
.destination-hero {
  padding-block: var(--hero-space-top) var(--hero-space-bottom);
  background: linear-gradient(145deg, var(--color-surface), var(--color-white));
}

/*
 * One first-party inner-page hero contract. New templates must use
 * alov_travel_page_hero(); canonical alignment is left site-wide.
 */
.page-hero--unified {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  background: linear-gradient(145deg, var(--color-surface-soft) 0%, var(--color-white) 72%);
}

.page-hero--compact {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(145deg, var(--color-surface-soft) 0%, var(--color-white) 72%);
}

.page-hero--center {
  overflow: hidden;
  text-align: center;
}

.page-hero__content {
  max-width: calc(var(--layout-max) + (var(--layout-gutter) * 2));
  text-align: left;
}

.page-hero--center .page-hero__content,
.page-hero--center .page-eyebrow {
  margin-inline: auto;
}

.page-hero--unified .page-eyebrow {
  margin-inline: 0;
}

.archive-hero h1,
.page-hero h1,
.article-hero h1,
.destination-hero h1,
.page-hero__title {
  max-width: 920px;
  margin: 0;
  color: var(--color-heading);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
  letter-spacing: -0.042em;
}

.page-hero__title {
  max-width: 820px;
  margin-inline: 0;
}

.page-eyebrow + .page-hero__title,
.rank-math-breadcrumb + .page-eyebrow,
.alov-breadcrumbs + .page-eyebrow {
  margin-top: 0;
}

.archive-hero .alov-eyebrow + h1,
.article-hero .alov-eyebrow + h1 {
  margin-top: 0;
}

.archive-hero p:last-child,
.destination-hero__text,
.page-hero__lead {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: var(--font-size-lead);
}

.archive-hero h1 + p,
.destination-hero h1 + .destination-hero__text,
.page-hero__title + .page-hero__lead {
  margin-top: var(--space-5);
}

.page-hero--center .page-hero__lead {
  margin-inline: auto;
}

.page-hero--unified .page-hero__lead,
.page-hero__lead {
  margin-inline: 0;
}

.page-hero__lead {
  max-width: 700px;
  margin-bottom: 0;
}

/* Rich content typography */
.prose {
  color: var(--color-text);
  font-size: var(--font-size-body-lg);
}

.prose > * {
  max-width: var(--content-width);
}

.prose p,
.prose li {
  line-height: 1.75;
}

.prose h2 {
  margin-top: 2.3em;
  font-size: var(--font-size-h3);
}

.prose h3 {
  margin-top: 1.8em;
  font-size: var(--font-size-h4);
}

.prose h4,
.prose h5,
.prose h6 {
  margin-top: 1.6em;
}

.prose a {
  color: var(--color-primary-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/*
 * Plan My Trip uses the canonical field/button primitives without page-level
 * geometry overrides. Only its layout/grid belongs here.
 */
.plan-request-section {
  padding-top: var(--section-space-y-compact);
}

.plan-request-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.plan-request-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: var(--space-6) var(--grid-gap);
  align-items: start;
}

.plan-field {
  display: block;
  margin: 0;
}

.plan-field--name,
.plan-field--email,
.plan-field--duration,
.plan-field--regions {
  grid-column: 1;
}

.plan-field--whatsapp,
.plan-field--date {
  grid-column: 2;
}

.plan-interests {
  grid-column: 2;
  grid-row: 3 / span 2;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-service-intent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: var(--space-1) var(--grid-gap);
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-service-intent legend {
  grid-column: 1 / -1;
}

.plan-interests legend,
.plan-service-intent legend {
  padding: 0;
}

.plan-interests .alov-choice,
.plan-service-intent .alov-choice {
  display: flex;
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--radius-control);
  transition: background-color var(--transition-fast);
}

.plan-interests .alov-choice:hover,
.plan-service-intent .alov-choice:hover {
  background: rgba(var(--rgb-primary), 0.055);
}

.plan-interests .alov-choice > :is(input[type="checkbox"], input[type="radio"]),
.plan-service-intent .alov-choice > :is(input[type="checkbox"], input[type="radio"]) {
  margin-top: 0.1em;
}

.plan-interests .alov-choice > span,
.plan-service-intent .alov-choice > span {
  font-size: var(--font-size-body);
}

.plan-request-form__submit {
  margin-top: var(--space-7);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  background: var(--color-white);
  color: var(--color-black);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  input[type="checkbox"],
  input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: var(--control-choice-size) !important;
    height: var(--control-choice-size) !important;
    forced-color-adjust: auto;
  }
}

@media (max-width: 780px) {
  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .page-hero__lead {
    font-size: var(--font-size-body);
  }

  .page-eyebrow,
  .section-eyebrow,
  .alov-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .plan-request-card {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-card-lg);
  }

  .plan-request-form__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .plan-field--name,
  .plan-field--whatsapp,
  .plan-field--email,
  .plan-field--date,
  .plan-field--duration,
  .plan-interests,
  .plan-service-intent,
  .plan-field--regions {
    grid-column: 1;
    grid-row: auto;
  }

  .plan-service-intent {
    grid-template-columns: 1fr;
  }

  .plan-service-intent legend {
    grid-column: 1;
  }

  .plan-request-form__submit {
    margin-top: var(--space-6);
  }
}

@media (max-width: 480px) {
  .alov-actions {
    flex-direction: column;
  }

  .alov-actions .alov-button {
    width: 100%;
  }
}
