@extends('landingpage::themes.job_board.layouts.app') {{-- Extends the theme's main app layout --}}

{{-- The $page variable is expected to be passed to this master layout by the listing views --}}
{{-- The app.blade.php layout will use this $page (as $currentPage) for its meta tags --}}
{{-- If master.blade.php needed to override specific meta tags, it could do so here: --}}
{{-- @section('meta_title', ($page->meta_title ?? $page->title ?? 'Default Listing Title') . ' - ' . setting('site_name')) --}}
{{-- @section('meta_description', $page->meta_description ?? 'Default listing description.') --}}

{{-- Any styles or scripts specific to the 'master' layout structure (if any) can be pushed here. --}}
{{-- Most assets are handled by app.blade.php --}}
{{-- @push('styles')
    <link rel="stylesheet" href="{{ asset('modules/landingpage/themes/job_board/css/master-specific.css') }}">
@endpush --}}

@section('content')
    {{--
        The theme's app.blade.php already includes:
        - Topbar (@include("landingpage::themes.{$activeTheme}.partials.topbar"))
        - Header (@include("landingpage::themes.{$activeTheme}.partials.header"))
        - Footer (@include("landingpage::themes.{$activeTheme}.partials.footer"))
        - The main <div id="app" class="flex flex-col min-h-screen"> and <main class="flex-grow"> structure.

        This 'master' layout's role is now primarily to yield the content from the specific listing pages
        (jobs.blade.php, companies.blade.php, etc.) which define a 'theme_content' section.
    --}}
    @yield('theme_content')
@endsection