{#if isWarningModalOpen} (isWarningModalOpen = false)} on:confirm={deleteTransportation} /> {/if} {#if lodging.is_public} {:else} {/if} {#if lodging.type} {$t(`lodging.${lodging.type}`)} {getLodgingIcon(lodging.type)} {/if} {lodging.name} goto(`/lodging/${lodging.id}`)} > {#if !readOnly && (lodging.user == user?.uuid || (collection && user && collection.shared_with?.includes(user.uuid)))} { if (isActionsMenuOpen) { isActionsMenuOpen = false; return; } closeAllLodgingMenus(); isActionsMenuOpen = true; }} > { isActionsMenuOpen = false; editTransportation(); }} class="flex items-center gap-2" > {$t('transportation.edit')} {#if itineraryItem && itineraryItem.id} {#if !itineraryItem.is_global} { isActionsMenuOpen = false; dispatch('moveToGlobal', { type: 'lodging', id: lodging.id }); }} class="flex items-center gap-2" > {$t('itinerary.move_to_trip_context') || 'Move to Trip Context'} { isActionsMenuOpen = false; changeDay(); }} class=" flex items-center gap-2" > {$t('itinerary.change_day')} {/if} { isActionsMenuOpen = false; removeFromItinerary(); }} class="text-error flex items-center gap-2" > {#if itineraryItem.is_global} {$t('itinerary.remove_from_trip_context') || 'Remove from Trip Context'} {:else} {$t('itinerary.remove_from_itinerary')} {/if} {/if} { isActionsMenuOpen = false; isWarningModalOpen = true; }} > {$t('adventures.delete')} {/if} {#if lodging.location} {lodging.location} {/if} {#if lodging.check_in || lodging.check_out} {#if lodging.check_in && lodging.check_out} {#if isAllDay(lodging.check_in) && isAllDay(lodging.check_out)} {formatAllDayDate(lodging.check_in)} → {formatAllDayDate(lodging.check_out)} {:else} Check-in {#if isAllDay(lodging.check_in)} {formatAllDayDate(lodging.check_in)} {:else} {formatDateInTimezone(lodging.check_in, lodging.timezone)} {/if} {#if hasTimePortion(lodging.check_in) && shouldShowTzBadge(lodging.timezone)} {getTimezoneLabel(lodging.timezone)} {/if} {#if hasExpandableDetails} (showMoreDetails = !showMoreDetails)} type="button" > {showMoreDetails ? ($t('common.show_less') ?? 'Hide details') : ($t('common.show_more') ?? 'Show more')} {/if} {#if showMoreDetails && hasExpandableDetails} Check-out {#if isAllDay(lodging.check_out)} {formatAllDayDate(lodging.check_out)} {:else} {formatDateInTimezone(lodging.check_out, lodging.timezone)} {/if} {#if hasTimePortion(lodging.check_out) && shouldShowTzBadge(lodging.timezone)} {getTimezoneLabel(lodging.timezone)} {/if} {/if} {/if} {:else if lodging.check_in} Check-in {#if isAllDay(lodging.check_in)} {formatAllDayDate(lodging.check_in)} {:else} {formatDateInTimezone(lodging.check_in, lodging.timezone)} {/if} {#if hasTimePortion(lodging.check_in) && shouldShowTzBadge(lodging.timezone)} {getTimezoneLabel(lodging.timezone)} {/if} {:else if lodging.check_out} Check-out {#if isAllDay(lodging.check_out)} {formatAllDayDate(lodging.check_out)} {:else} {formatDateInTimezone(lodging.check_out, lodging.timezone)} {/if} {#if hasTimePortion(lodging.check_out) && shouldShowTzBadge(lodging.timezone)} {getTimezoneLabel(lodging.timezone)} {/if} {/if} {/if} {#if lodging.rating} {#each renderStars(lodging.rating) as filled} {#if filled} {:else} {/if} {/each} ({lodging.rating}/5) {/if} {#if lodging.user == user?.uuid || (collection && user && collection.shared_with?.includes(user.uuid))} {#if lodging.reservation_number} {$t('adventures.reservation')}: {lodging.reservation_number} {/if} {#if lodgingPriceLabel} 💰 {lodgingPriceLabel} {/if} {/if}