/*
 * SkyCenter product foundation
 *
 * This file is intentionally additive. It is activated only on the public
 * roots that opt into body[data-sc-product] and leaves legacy/admin surfaces
 * outside that boundary untouched.
 */

body[data-sc-product] {
  --sc-blue: #0878b8;
  --sc-blue-dark: #075f92;
  --sc-navy: #1e3050;
  --sc-navy-dark: #14243d;
  --sc-ink: #1a2335;
  --sc-text: #526174;
  --sc-muted: #5f6b79;
  --sc-line: #dce3eb;
  --sc-bg: #f7f9fc;
  --sc-white: #fff;
  --sc-hero-muted: #e4eef6;
  --sc-hero-panel: #071422;
  --sc-font-sans: 'Segoe UI', Arial, sans-serif;

  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: var(--sc-font-sans);
  text-rendering: optimizeLegibility;
}

body[data-sc-product] ::selection {
  background: var(--sc-hero-muted);
  color: var(--sc-navy-dark);
}

body[data-sc-product] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--sc-blue);
  outline-offset: 3px;
}

/* Keep the existing public controls comfortable to tap without taking over
 * app-specific layout or consent behavior. These are native hooks shared by
 * the four public roots; a minimum block size preserves each control's width,
 * text, handler, and surrounding flow. */
body[data-sc-product] :is(
  #cookie-buttons button,
  #cookie-text > a,
  .lang-switcher .lang-btn,
  .lang-switcher .lang-dropdown a,
  .navbar-toggle,
  .mobile-menu-icon,
  .navbar-nav > li > a,
  [data-compare-vehicle],
  [data-picker-action],
  [data-picker-day],
  [data-picker-time],
  .sc-date-trigger,
  .sc-picker-trigger,
  .sc-wizard-panel-heading,
  .sc-wizard-actions button,
  .sc-map-action,
  .sc-submit,
  .sc-back-button,
  .sc-btn-primary,
  .sc-btn-secondary,
  .sc-mobile-conversion__action,
  .sc-product-primary,
  .sc-product-secondary,
  .select-btn,
  #submitBooking,
  #closeModalBtn
) {
  min-block-size: 44px;
}

/* Consent stays actionable when the mobile conversion bar is present. The
 * four public roots reserve 72px for that bar (plus the device safe area), so
 * keep the consent surface above the reserved band rather than changing its
 * markup, handlers, or dismissal semantics. */
body[data-sc-product] #cookie-banner {
  background: var(--sc-navy-dark);
  color: var(--sc-white);
  z-index: 10001;
}

body[data-sc-product] #cookie-text p {
  color: var(--sc-hero-muted);
}

body[data-sc-product] #cookie-text > a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  color: var(--sc-hero-muted);
  vertical-align: middle;
}

body[data-sc-product] #cookie-buttons button {
  border-color: var(--sc-hero-muted);
  background: transparent;
  color: var(--sc-white);
}

body[data-sc-product] #cookie-buttons #cookie-accept {
  border-color: var(--sc-blue);
  background: var(--sc-blue);
}

@media (max-width: 768px) {
  body[data-sc-product] #cookie-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 10001;
  }
}

@media (max-width: 767px) {
  body[data-sc-product] .lang-switcher {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(68px + env(safe-area-inset-right, 0px));
    bottom: auto;
    z-index: 10001;
  }

  /* Keep the native language control in the header row between the logo and
   * menu. The full language name remains available to assistive technology,
   * while the compact code preserves space for both native controls. */
  body[data-sc-product] .lang-switcher .lang-btn {
    box-sizing: border-box;
    width: 60px;
    min-width: 60px;
    min-height: 44px;
    gap: 4px;
    padding: 8px;
  }

  body[data-sc-product] .lang-switcher .lang-btn > span:nth-child(2) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
  }

  body[data-sc-product] .lang-switcher .lang-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
  }

  /* Portal and Rent retain the native Bootstrap child order (menu, then
   * brand). Reverse those two existing flex items on narrow screens so the
   * 60px language control has a real header slot between the logo and menu.
   * The toggle and brand remain the original native controls and handlers. */
  body[data-sc-product="portal"] .navbar-header .navbar-brand,
  body[data-sc-product="rentacar"] .navbar-header .navbar-brand {
    order: 1;
  }

  body[data-sc-product="portal"] .navbar-header::before,
  body[data-sc-product="portal"] .navbar-header::after,
  body[data-sc-product="rentacar"] .navbar-header::before,
  body[data-sc-product="rentacar"] .navbar-header::after {
    display: none;
    content: none;
  }

  body[data-sc-product="portal"] .navbar-header .navbar-toggle,
  body[data-sc-product="rentacar"] .navbar-header .navbar-toggle {
    order: 2;
  }

  body[data-sc-product="portal"] .lang-switcher,
  body[data-sc-product="rentacar"] .lang-switcher {
    right: calc(76px + env(safe-area-inset-right, 0px));
  }

  /* The social links follow each page's footer on narrow screens, keeping
   * their native actions reachable without covering forms or conversion CTAs.
   * The fixed contact and conversion actions keep their existing contracts. */
  body[data-sc-product] .sky-social-dock {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px;
    transform: none;
    background: var(--sc-navy);
  }

  body[data-sc-product] .sky-social-dock .ssd-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  /* Home renders consent across the lower viewport while its language button
   * now stays in the header row, clear of the conversion bar. */
  body[data-sc-product="cazare"] .lang-switcher {
    z-index: 9999;
  }
}

/* At tablet and desktop widths the legacy bottom corner is part of the
 * content's action area. Keep the language control in the quiet band just
 * below the public header and open its menu downward from that anchor. This
 * leaves lower booking fields reachable without adding page-height spacers. */
@media (min-width: 768px) {
  body[data-sc-product] .lang-switcher {
    top: calc(108px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  body[data-sc-product] .lang-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
  }
}

/* Home hides its conversion bar at exactly 768px, so keep that one boundary
 * on the header-side anchor instead of leaving a bottom reservation with no
 * fixed action bar beneath it. */
@media (min-width: 768px) and (max-width: 768px) {
  body[data-sc-product="cazare"] .lang-switcher {
    top: calc(108px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  body[data-sc-product="cazare"] .lang-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
  }
}

body[data-sc-product] :is(
  .lang-switcher .lang-dropdown a,
  .navbar-nav > li > a,
  [data-compare-vehicle],
  [data-picker-action],
  [data-picker-day],
  [data-picker-time]
) {
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-sc-product] :where(button, input, select, textarea) {
  font: inherit;
}

body[data-sc-product] .sc-product-container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

body[data-sc-product] .sc-product-section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

body[data-sc-product] .sc-product-section--compact {
  padding-block: clamp(2rem, 5vw, 4rem);
}

body[data-sc-product] .sc-product-section--dark {
  background: var(--sc-hero-panel);
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-section--muted {
  background: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-stack {
  display: grid;
  gap: 1rem;
}

body[data-sc-product] .sc-product-stack--wide {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

body[data-sc-product] .sc-product-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

body[data-sc-product] .sc-product-grid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

body[data-sc-product] .sc-product-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-sc-product] .sc-product-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-sc-product] .sc-product-rule {
  width: 100%;
  height: 1px;
  margin-block: 1rem;
  border: 0;
  background: var(--sc-line);
}

body[data-sc-product] .sc-product-section--dark .sc-product-rule {
  background: rgba(255, 255, 255, 0.22);
}

body[data-sc-product] .sc-product-kicker {
  margin: 0;
  color: var(--sc-blue-dark);
  font-size: var(--sky-fs-s);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

body[data-sc-product] .sc-product-section--dark .sc-product-kicker {
  color: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-title {
  max-width: 18ch;
  margin: 0;
  color: var(--sc-navy);
  font-size: var(--sky-fs-xl);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body[data-sc-product] .sc-product-section--dark .sc-product-title {
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-lead {
  max-width: 58ch;
  margin: 0;
  color: var(--sc-text);
  font-size: var(--sky-fs-m);
  line-height: 1.65;
}

body[data-sc-product] .sc-product-section--dark .sc-product-lead {
  color: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-muted {
  color: var(--sc-muted);
}

body[data-sc-product] .sc-product-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--sc-line);
  background: var(--sc-white);
}

body[data-sc-product] .sc-product-section--dark .sc-product-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

body[data-sc-product] .sc-product-card > :where(h2, h3, h4, p) {
  margin-block: 0;
}

body[data-sc-product] .sc-product-card > :where(h2, h3, h4) {
  color: var(--sc-navy);
  font-size: var(--sky-fs-s);
  line-height: 1.2;
}

body[data-sc-product] .sc-product-section--dark .sc-product-card > :where(h2, h3, h4) {
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-card > p {
  color: var(--sc-text);
  line-height: 1.6;
}

body[data-sc-product] .sc-product-section--dark .sc-product-card > p {
  color: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-media-frame {
  position: relative;
  overflow: hidden;
  background: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-media-frame > :where(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

body[data-sc-product] .sc-product-media-frame--wide {
  aspect-ratio: 16 / 9;
}

body[data-sc-product] .sc-product-media-frame--portrait {
  aspect-ratio: 4 / 5;
}

body[data-sc-product] .sc-product-action {
  display: inline-flex;
  min-block-size: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--sc-blue);
  border-radius: 0.2rem;
  background: var(--sc-blue);
  color: var(--sc-white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body[data-sc-product] .sc-product-action:hover {
  border-color: var(--sc-blue-dark);
  background: var(--sc-blue-dark);
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-action--secondary {
  border-color: var(--sc-navy);
  background: transparent;
  color: var(--sc-navy);
}

body[data-sc-product] .sc-product-action--secondary:hover {
  border-color: var(--sc-navy-dark);
  background: var(--sc-navy);
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-section--dark .sc-product-action--secondary {
  border-color: var(--sc-hero-muted);
  color: var(--sc-white);
}

body[data-sc-product] .sc-product-section--dark .sc-product-action--secondary:hover {
  border-color: var(--sc-white);
  background: var(--sc-white);
  color: var(--sc-navy-dark);
}

/*
 * Shared header proportions. App adapters opt in by marking the existing
 * public header with data-sc-header and its existing logo link or image with
 * data-sc-logo. The image remains the source of truth; these dimensions only
 * keep its current aspect ratio readable at the shared header heights.
 */
body[data-sc-product] [data-sc-header] {
  --sc-header-block-size: clamp(4.5rem, 8vw, 6.25rem);
  --sc-header-logo-height: clamp(3.5rem, 7vw, 4.875rem);
  min-block-size: var(--sc-header-block-size);
}

body[data-sc-product] [data-sc-header] :where([data-sc-logo], [data-sc-header-logo]) {
  display: inline-flex;
  min-block-size: var(--sc-header-block-size);
  align-items: center;
  flex: 0 0 auto;
}

body[data-sc-product] [data-sc-header] :where(
  [data-sc-logo] img,
  img[data-sc-logo],
  [data-sc-header-logo] img,
  img[data-sc-header-logo],
  .sc-platform-logo
) {
  display: block;
  width: auto;
  height: var(--sc-header-logo-height);
  max-width: min(13.125rem, 48vw);
  object-fit: contain;
}

/* Review rails are native overflow regions. JavaScript changes only the
 * track transform; cards, text, and any supplied controls remain app-owned. */
body[data-sc-product] [data-sc-review-rail] {
  --sc-review-gap: clamp(0.75rem, 2vw, 1.25rem);
  --sc-review-surface: var(--sc-white);
  --sc-review-border: var(--sc-line);
  min-width: 0;
}

body[data-sc-product] [data-sc-review-viewport] {
  min-width: 0;
  overflow: hidden;
  overscroll-behavior-x: contain;
}

body[data-sc-product] [data-sc-review-track] {
  display: flex;
  width: max-content;
  max-width: none;
  gap: var(--sc-review-gap);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body[data-sc-product] [data-sc-review-card] {
  box-sizing: border-box;
  flex: 0 0 min(27rem, calc(100vw - 2rem));
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid var(--sc-review-border);
  background: var(--sc-review-surface);
  color: var(--sc-ink);
}

body[data-sc-product] [data-sc-review-card] :where(h2, h3, h4, p) {
  margin-block: 0;
}

body[data-sc-product] [data-sc-review-card] :where(p) {
  color: var(--sc-text);
  line-height: 1.6;
}

body[data-sc-product] [data-sc-review-controls] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 1rem;
}

body[data-sc-product] :where(
  [data-sc-review-prev],
  [data-sc-review-next],
  [data-sc-review-toggle]
) {
  display: inline-flex;
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sc-navy);
  border-radius: 0.2rem;
  background: var(--sc-white);
  color: var(--sc-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

body[data-sc-product] :where(
  [data-sc-review-prev],
  [data-sc-review-next],
  [data-sc-review-toggle]
):hover {
  border-color: var(--sc-blue-dark);
  background: var(--sc-hero-muted);
  color: var(--sc-navy-dark);
}

body[data-sc-product] :where(
  [data-sc-review-prev],
  [data-sc-review-next],
  [data-sc-review-toggle]
):active {
  transform: translateY(1px);
}

body[data-sc-product] [data-sc-review-rail][data-sc-review-paused="true"]
  [data-sc-review-toggle] {
  border-color: var(--sc-blue);
  background: var(--sc-blue);
  color: var(--sc-white);
}

body[data-sc-product] [data-sc-review-rail][data-sc-review-state="reduced"]
  [data-sc-review-toggle] {
  cursor: default;
}

/* Logo support: the image is never redrawn, cropped, filtered, or recolored. */
body[data-sc-product] [data-sc-logo] {
  position: relative;
  isolation: isolate;
}

body[data-sc-product] .sc-product-logo-accent {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0.35rem;
  z-index: 0;
  display: block;
  height: 0.18rem;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background: var(--sc-blue);
  content: "";
  pointer-events: none;
  transition: transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-sc-product] .sc-product-logo-accent.is-visible {
  transform: scaleX(1);
}

/* Decorative, symbolic service graph. Labels and links stay semantic HTML. */
body[data-sc-product] [data-sc-flight-path] {
  position: relative;
  display: block;
  min-height: 7rem;
  color: var(--sc-navy);
}

body[data-sc-product] .sc-product-flight-path__svg {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: auto;
  overflow: visible;
}

body[data-sc-product] .sc-product-flight-path__origin-support {
  fill: none;
  stroke: var(--sc-blue);
  stroke-linecap: round;
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}

body[data-sc-product] .sc-product-flight-path__line {
  fill: none;
  stroke: var(--sc-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

body[data-sc-product] .sc-product-flight-path__line.is-pending {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

body[data-sc-product] .sc-product-flight-path__node {
  fill: var(--sc-white);
  stroke: var(--sc-navy);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

body[data-sc-product] .sc-product-flight-path__node--origin {
  fill: var(--sc-blue);
  stroke: var(--sc-blue-dark);
}

body[data-sc-product] .sc-product-flight-path__node.is-pending {
  opacity: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.6);
}

body[data-sc-product] .sc-product-flight-path__label {
  fill: var(--sc-navy);
  font-family: var(--sc-font-sans);
  font-size: var(--sky-fs-s);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-sc-product] .sc-product-flight-path__label--origin {
  fill: var(--sc-blue-dark);
}

body[data-sc-product] .sc-product-section--dark .sc-product-flight-path__label {
  fill: var(--sc-hero-muted);
}

body[data-sc-product] .sc-product-section--dark .sc-product-flight-path__label--origin {
  fill: var(--sc-white);
}

body[data-sc-product] [data-sc-flight-path].is-static .sc-product-flight-path__line,
body[data-sc-product] [data-sc-flight-path].is-drawn .sc-product-flight-path__line {
  stroke-dashoffset: 0;
}

body[data-sc-product] [data-sc-flight-path].is-static .sc-product-flight-path__node,
body[data-sc-product] [data-sc-flight-path].is-drawn .sc-product-flight-path__node {
  opacity: 1;
  transform: scale(1);
}

/* Scroll progress remains decorative; the document owns scrolling. */
body[data-sc-product] [data-sc-progress] {
  --sc-product-progress: 0;
  position: relative;
  overflow: hidden;
  min-height: 0.2rem;
  background: var(--sc-line);
}

body[data-sc-product] [data-sc-progress]::before {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--sc-product-progress));
  transform-origin: left center;
  background: var(--sc-blue);
  content: "";
  will-change: transform;
}

/* Step feedback never changes visibility or form state. */
body[data-sc-product] [data-sc-step-region] {
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

body[data-sc-product] [data-sc-step-region].sc-product-step-revealed {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 0.2rem rgba(8, 120, 184, 0.14);
}

/* Native media remains the source of truth; this is only a small error state. */
body[data-sc-product] [data-sc-video] {
  position: relative;
}

body[data-sc-product] [data-sc-video][data-sc-video-state="error"] {
  border-color: var(--sc-blue-dark);
}

body[data-sc-product] [data-sc-video-fallback][hidden] {
  display: none;
}

body[data-sc-product] [data-sc-video-fallback]:not([hidden]) {
  display: grid;
  min-height: 8rem;
  place-items: center;
  padding: 1rem;
  background: var(--sc-hero-muted);
  color: var(--sc-navy-dark);
  text-align: center;
}

@media (max-width: 52rem) {
  body[data-sc-product] .sc-product-grid--split,
  body[data-sc-product] .sc-product-grid--three,
  body[data-sc-product] .sc-product-grid--four {
    grid-template-columns: 1fr;
  }

  body[data-sc-product] .sc-product-container {
    width: min(100% - 1.25rem, 76rem);
  }
}

@media (max-width: 30rem) {
  body[data-sc-product] .sc-product-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-sc-product] *,
  body[data-sc-product] *::before,
  body[data-sc-product] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body[data-sc-product] .sc-product-logo-accent {
    transform: scaleX(1);
  }

  body[data-sc-product] .sc-product-flight-path__line {
    stroke-dashoffset: 0;
  }

  body[data-sc-product] .sc-product-flight-path__node {
    opacity: 1;
    transform: scale(1);
  }
}

/* Rentacar adapter: keep the app's approved compact header dimensions while
 * the shared foundation supplies the common interaction and focus rules. */
body[data-sc-product="rentacar"] [data-sc-header] {
  --sc-header-block-size: 82px;
  --sc-header-logo-height: 68px;
  height: 82px;
  min-block-size: 82px;
  border-bottom: 0;
}

body[data-sc-product="rentacar"] [data-sc-header] :where([data-sc-logo], [data-sc-header-logo]) {
  height: 82px;
  min-block-size: 82px;
}

body[data-sc-product="rentacar"] [data-sc-header] :where(
  [data-sc-logo] img,
  img[data-sc-logo],
  [data-sc-header-logo] img,
  img[data-sc-header-logo],
  .sc-platform-logo
) {
  max-width: 165px;
}

body[data-sc-product="rentacar"] [data-sc-header] .navbar-inverse {
  background: var(--sc-white) !important;
  border-bottom: 2px solid var(--sc-blue) !important;
}

body[data-sc-product="rentacar"] [data-sc-header] .navbar-nav > li.active > a,
body[data-sc-product="rentacar"] [data-sc-header] .navbar-nav > li.active > a:hover,
body[data-sc-product="rentacar"] [data-sc-header] .navbar-nav > li.active > a:focus {
  color: var(--sc-blue) !important;
  background: transparent !important;
  border-bottom: 5px solid var(--sc-blue);
}

body[data-sc-product="rentacar"] .lang-switcher {
  top: auto;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 10002;
}

body[data-sc-product="rentacar"] .lang-switcher .lang-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
}

body[data-sc-product="rentacar"] .sky-social-dock {
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(142px + env(safe-area-inset-bottom, 0px));
}

body[data-sc-product="rentacar"] .sc-contact-widget {
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

/* Keep the legacy HTML roots and the PHP secondary template on the same
 * portal shell. The footer image is an opaque white PNG; multiply blending
 * on the shared soft surface removes its rectangular white field while
 * retaining the blue/navy wordmark. */
body[data-sc-product="rentacar"] .site-header {
  border-bottom: 2px solid var(--sc-blue);
}

body[data-sc-product="rentacar"] .site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 max(20px, calc((100% - 1080px) / 2));
  background: var(--sc-white);
}

body[data-sc-product="rentacar"] .site-header .brand img {
  display: block;
  width: 154px;
  height: auto;
}

body[data-sc-product="rentacar"] .site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

body[data-sc-product="rentacar"] .site-header nav a {
  color: var(--sc-navy);
  font-size: var(--sky-fs-s);
  font-weight: 700;
  text-decoration: none;
}

body[data-sc-product="rentacar"] .site-header nav a:hover,
body[data-sc-product="rentacar"] .site-header nav a:focus-visible {
  color: var(--sc-blue);
  text-decoration: underline;
}

body[data-sc-product="rentacar"] :where(#footer, .rentacar-shell-footer),
body[data-sc-product="rentacar"] > footer {
  background: var(--sc-bg);
  color: var(--sc-ink);
  border-top: 1px solid var(--sc-line);
}

body[data-sc-product="rentacar"] #footer .footer-block h3,
body[data-sc-product="rentacar"] #footer .footer-block h4,
body[data-sc-product="rentacar"] #footer .footer-block .h4,
body[data-sc-product="rentacar"] #footer .footer-block p,
body[data-sc-product="rentacar"] #footer .footer-block li,
body[data-sc-product="rentacar"] #footer .footer-block a {
  color: var(--sc-ink);
}

body[data-sc-product="rentacar"] :where(.footer-logo-image, .rentacar-shell-footer img) {
  display: block;
  max-width: 100%;
  height: auto;
  filter: none;
  mix-blend-mode: multiply;
}

.rentacar-shell-footer {
  padding: 28px max(20px, calc((100% - 1080px) / 2));
}

.rentacar-shell-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rentacar-shell-footer__brand img {
  width: 154px;
}

.rentacar-shell-footer__contact {
  display: grid;
  gap: 4px;
  color: var(--sc-text);
  font-size: var(--sky-fs-s);
  text-align: right;
}

.rentacar-shell-footer__contact a {
  color: var(--sc-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  body[data-sc-product="rentacar"] .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px;
  }

  body[data-sc-product="rentacar"] .site-header nav {
    gap: 14px;
  }

  .rentacar-shell-footer__contact {
    text-align: left;
  }
}

@media (max-width: 1000px) {
  body[data-sc-product="rentacar"] [data-sc-header],
  body[data-sc-product="rentacar"] [data-sc-header] .navbar {
    height: 70px;
    min-height: 70px;
  }

  body[data-sc-product="rentacar"] [data-sc-header] {
    --sc-header-block-size: 70px;
    --sc-header-logo-height: 58px;
    min-block-size: 70px;
  }

  body[data-sc-product="rentacar"] [data-sc-header] .navbar-header {
    display: flex;
    min-height: 70px;
    align-items: center;
    float: none;
  }

  body[data-sc-product="rentacar"] [data-sc-header] .navbar-header::before,
  body[data-sc-product="rentacar"] [data-sc-header] .navbar-header::after {
    display: none;
    content: none;
  }

  body[data-sc-product="rentacar"] [data-sc-header] .navbar-brand {
    order: 1;
    height: 70px;
    min-block-size: 70px;
    padding: 4px 10px;
  }

  body[data-sc-product="rentacar"] [data-sc-header] .sc-platform-logo {
    max-width: 140px;
  }

  body[data-sc-product="rentacar"] [data-sc-header] .navbar-toggle {
    order: 2;
    display: block;
    float: none;
    margin: 0 10px 0 auto;
    border-color: var(--sc-blue);
    background: var(--sc-white);
  }

  body[data-sc-product="rentacar"] [data-sc-header] .navbar-toggle .icon-bar {
    background: var(--sc-navy);
  }
}

/* The mobile conversion bar reserves the lower safe-area band. Keep the
 * WhatsApp, language, and social controls stacked above that same band so
 * they remain reachable without covering the conversion actions. */
@media (max-width: 768px) {
  body[data-sc-product="rentacar"] .sc-contact-widget {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 56px);
  }

  body[data-sc-product="rentacar"] .lang-switcher {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 4px);
  }

  body[data-sc-product="rentacar"] .lang-switcher .lang-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    max-height: calc(100vh - 188px);
    overflow-y: auto;
  }

  body[data-sc-product="rentacar"] .sky-social-dock {
    position: fixed;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 116px);
    z-index: 8999;
    display: flex;
    width: auto;
    padding: 0;
    background: transparent;
    flex-direction: column;
    gap: 8px;
  }

  body[data-sc-product="rentacar"] .sky-social-dock .ssd-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}
