import type { ReactNode } from "react";

import LeisureVendorAssets from "@/components/layout/LeisureVendorAssets";

/**
 * LEIS-987 — hotel details, step 1 of the 3-step flow (Hotel Details →
 * Review Booking → Request approval).
 *
 * The room list is ported from leisure-ui's Bootstrap 5 markup (same
 * `.roomTypes`/`.room-types-list` classes `/srp/hotels` already depends on),
 * so this route loads the same vendor bundle `app/srp/layout.tsx` does. See
 * that file's doc comment for the cascade-layer reasoning — it applies here
 * unchanged.
 *
 * `flight-approval.css`/`biz-ui.css` are loaded too, alongside the Bootstrap
 * bundle, purely so the step-1 `<HotelStepNav/>` at the top of the page
 * renders with the same `.fb-*` styling /hotel-request's steps 2–3 use —
 * same two-design-systems-on-one-route pattern app/hotel-request/layout.tsx
 * already documents.
 *
 * Unlike /srp, this route mounts neither `<LayoverDrawerHost/>` (flights-only)
 * nor `<RequestApprovalHost/>` — "Book Now" here navigates to /hotel-request,
 * a page, not an overlay (LEIS-988), so there is no overlay to host.
 */
export default function HotelDetailsLayout({ children }: { children: ReactNode }) {
  return (
    <>
      <LeisureVendorAssets />
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/flight-approval.css" />
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/biz-ui.css" />
      {children}
    </>
  );
}
