@extends('layouts.public')
@section('title', $listing->seoTitle())
@section('meta_description', $listing->seoDescription())
@section('content')
@php($cover = $images->firstWhere('is_cover') ?? $images->first())
{{-- The hero is the LCP image: eager, high priority, never lazy. --}}
@if ($cover)
 }})
srcset()) srcset="{{ $srcset }}" sizes="(min-width: 1024px) 60vw, 100vw" @endif
alt="{{ $cover->alt_text ?: $listing->title }}"
fetchpriority="high" decoding="async"
class="aspect-4/3 w-full object-cover sm:aspect-16/10">
@else
@endif
@if ($images->count() > 1)
@endif
@if ($images->count() > 1)
{{-- Thumbnail strip, scrollable rather than wrapping. --}}
@foreach ($images as $index => $medium)
@endforeach
@endif
@include('public.partials.lightbox')
{{ __('About this listing') }}
{{ $listing->description }}
@if ($specification)
{{ __('Details') }}
@foreach ($specification as $row)
- {{ $row['label'] }}
- {{ $row['value'] }}
@endforeach
@endif
@if ($floorPlans->isNotEmpty())
{{ __('Floor plans') }}
@foreach ($floorPlans as $plan)
@if ($plan->caption)
{{ $plan->caption }}
@endif
@endforeach
@endif
@if ($videos->isNotEmpty())
@endif
@if ($listing->latitude && $listing->longitude)
@endif
@endsection